1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update file_name to visible_file_name in send_document

This commit is contained in:
Badiboy
2021-06-29 13:30:01 +03:00
parent 30e304ffb5
commit a4e73a05c6
3 changed files with 7 additions and 7 deletions

View File

@@ -1124,7 +1124,7 @@ class TeleBot:
thumb: Optional[Union[Any, str]]=None,
caption_entities: Optional[List[types.MessageEntity]]=None,
allow_sending_without_reply: Optional[bool]=None,
file_name: Optional[str]=None) -> types.Message:
visible_file_name: Optional[str]=None) -> types.Message:
"""
Use this method to send general files.
:param chat_id:
@@ -1138,7 +1138,7 @@ class TeleBot:
:param thumb: InputFile or String : Thumbnail of the file sent
:param caption_entities:
:param allow_sending_without_reply:
:param file_name:
:param visible_file_name: allows to define file name that will be visible in the Telegram instead of original file name
:return: API reply.
"""
parse_mode = self.parse_mode if (parse_mode is None) else parse_mode
@@ -1147,7 +1147,7 @@ class TeleBot:
apihelper.send_data(
self.token, chat_id, data, 'document', reply_to_message_id, reply_markup,
parse_mode, disable_notification, timeout, caption, thumb, caption_entities,
allow_sending_without_reply, file_name))
allow_sending_without_reply, visible_file_name))
def send_sticker(
self, chat_id: Union[int, str], data: Union[Any, str],