Skip to content

Commit

Permalink
Update async_telebot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2020official authored Jan 14, 2024
1 parent 2cde0c9 commit fff1d94
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions telebot/async_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2913,10 +2913,8 @@ async def delete_message(self, chat_id: Union[int, str], message_id: int,

async def delete_messages(self, chat_id: Union[int, str], message_ids: List[int]):
"""
Use this method to delete multiple messages in a chat.
The number of messages to be deleted must not exceed 100.
If the chat is a private chat, the user must be an administrator of the chat for this to work and must have the appropriate admin rights.
Returns True on success.
Use this method to delete multiple messages simultaneously.
If some of the specified messages can't be found, they are skipped. Returns True on success.
Telegram documentation: https://core.telegram.org/bots/api#deletemessages
Expand All @@ -2934,7 +2932,9 @@ async def delete_messages(self, chat_id: Union[int, str], message_ids: List[int]
async def forward_messages(self, chat_id: Union[str, int], from_chat_id: Union[str, int], message_ids: List[int], disable_notification: Optional[bool]=None,
message_thread_id: Optional[int]=None, protect_content: Optional[bool]=None) -> List[types.MessageID]:
"""
Use this method to forward messages of any kind.
Use this method to forward multiple messages of any kind. If some of the specified messages can't be found or forwarded,
they are skipped. Service messages and messages with protected content can't be forwarded.
Album grouping is kept for forwarded messages. On success, an array of MessageId of the sent messages is returned.
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
:type chat_id: :obj:`int` or :obj:`str`
Expand Down Expand Up @@ -2967,7 +2967,9 @@ async def copy_messages(self, chat_id: Union[str, int], from_chat_id: Union[str,
disable_notification: Optional[bool] = None, message_thread_id: Optional[int] = None,
protect_content: Optional[bool] = None, remove_caption: Optional[bool] = None) -> List[types.MessageID]:
"""
Use this method to copy messages of any kind.
Use this method to copy messages of any kind. Service messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied.
A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage,
but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success.
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
:type chat_id: :obj:`int` or :obj:`str`
Expand Down

0 comments on commit fff1d94

Please sign in to comment.