Skip to content

Commit

Permalink
Add business_connection_id to appropriate reply bound method of Message
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Apr 8, 2024
1 parent 886e968 commit 94e5075
Show file tree
Hide file tree
Showing 3 changed files with 313 additions and 35 deletions.
2 changes: 1 addition & 1 deletion docs/source/releases/changes-in-this-fork.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ it can take advantage of new goodies!
| Scheme layer used: 177 |
+------------------------+

- Added the parameter ``business_connection_id`` to the :meth:`~pyrogram.Client.send_cached_media`, :meth:`~pyrogram.Client.send_chat_action`, :meth:`~pyrogram.Client.send_animation`, :meth:`~pyrogram.Client.send_audio`, :meth:`~pyrogram.Client.send_contact`, :meth:`~pyrogram.Client.send_dice`, :meth:`~pyrogram.Client.send_document`, :meth:`~pyrogram.Client.send_media_group`, :meth:`~pyrogram.Client.send_message`, :meth:`~pyrogram.Client.send_photo`, :meth:`~pyrogram.Client.send_poll`, :meth:`~pyrogram.Client.send_sticker`, :meth:`~pyrogram.Client.send_video_note`, :meth:`~pyrogram.Client.send_video`, :meth:`~pyrogram.Client.send_voice`, :meth:`~pyrogram.Client.send_game`.
- Added the parameter ``business_connection_id`` to the methods :meth:`~pyrogram.Client.send_message`, :meth:`~pyrogram.Client.send_photo`, :meth:`~pyrogram.Client.send_video`, :meth:`~pyrogram.Client.send_animation`, :meth:`~pyrogram.Client.send_audio`, :meth:`~pyrogram.Client.send_document`, :meth:`~pyrogram.Client.send_sticker`, :meth:`~pyrogram.Client.send_video_note`, :meth:`~pyrogram.Client.send_voice`, :meth:`~pyrogram.Client.send_location`, :meth:`~pyrogram.Client.send_venue`, :meth:`~pyrogram.Client.send_contact`, :meth:`~pyrogram.Client.send_poll`, :meth:`~pyrogram.Client.send_game`, :meth:`~pyrogram.Client.send_media_group`, :meth:`~pyrogram.Client.send_dice`, :meth:`~pyrogram.Client.send_chat_action` and :meth:`~pyrogram.Client.send_cached_media` and the corresponding reply_* methods.
- Added :meth:`~pyrogram.Client.get_business_connection`.
- Added ``active_usernames`` to :obj:`~pyrogram.types.Chat` and :obj:`~pyrogram.types.User`.
- Added :obj:`~pyrogram.types.BusinessConnection`.
Expand Down
10 changes: 5 additions & 5 deletions pyrogram/methods/messages/send_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ async def send_animation(
Sends the message silently.
Users will receive a notification with no sound.
ttl_seconds (``int``, *optional*):
Self-Destruct Timer.
If you set a timer, the animation will self-destruct in *ttl_seconds*
seconds after it was viewed.
reply_parameters (:obj:`~pyrogram.types.ReplyParameters`, *optional*):
Description of the message to reply to
Expand All @@ -139,6 +134,11 @@ async def send_animation(
protect_content (``bool``, *optional*):
Protects the contents of the sent message from forwarding and saving.
ttl_seconds (``int``, *optional*):
Self-Destruct Timer.
If you set a timer, the animation will self-destruct in *ttl_seconds*
seconds after it was viewed.
reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
Additional interface options. An object for an inline keyboard, custom reply keyboard,
instructions to remove reply keyboard or to force a reply from the user.
Expand Down
Loading

0 comments on commit 94e5075

Please sign in to comment.