Fix default keyboard argument (#4459)

This commit is contained in:
Jahongir Qurbonov 2024-09-09 21:47:39 +05:00 committed by GitHub
parent 2e33e4075d
commit 918f719ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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.

View 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