mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 01:16:35 +03:00
Fix default keyboard argument (#4459)
This commit is contained in:
parent
2e33e4075d
commit
918f719ab2
|
@ -1466,7 +1466,7 @@ class Client:
|
|||
caption_markdown: Optional[str] = None,
|
||||
caption_html: Optional[str] = None,
|
||||
reply_to: Optional[int] = None,
|
||||
keyboard: Optional[KeyboardType],
|
||||
keyboard: Optional[KeyboardType] = None,
|
||||
) -> Message:
|
||||
"""
|
||||
Send any type of file with any amount of attributes.
|
||||
|
@ -1755,7 +1755,7 @@ class Client:
|
|||
caption_markdown: Optional[str] = None,
|
||||
caption_html: Optional[str] = None,
|
||||
reply_to: Optional[int] = None,
|
||||
keyboard: Optional[KeyboardType],
|
||||
keyboard: Optional[KeyboardType] = None,
|
||||
) -> Message:
|
||||
"""
|
||||
Send a video file.
|
||||
|
|
|
@ -138,7 +138,7 @@ async def send_video(
|
|||
caption_markdown: Optional[str] = None,
|
||||
caption_html: Optional[str] = None,
|
||||
reply_to: Optional[int] = None,
|
||||
keyboard: Optional[KeyboardType],
|
||||
keyboard: Optional[KeyboardType] = None,
|
||||
) -> Message:
|
||||
return await send_file(
|
||||
self,
|
||||
|
@ -187,7 +187,7 @@ async def send_file(
|
|||
caption_markdown: Optional[str] = None,
|
||||
caption_html: Optional[str] = None,
|
||||
reply_to: Optional[int] = None,
|
||||
keyboard: Optional[KeyboardType],
|
||||
keyboard: Optional[KeyboardType] = None,
|
||||
) -> Message:
|
||||
message, entities = parse_message(
|
||||
text=caption, markdown=caption_markdown, html=caption_html, allow_empty=True
|
||||
|
|
Loading…
Reference in New Issue
Block a user