Shortcut for:: await bot.send_animation( update.effective_message.chat_id, message_thread_id=update.effective_message.message_thread_id, business_connection_id=self.business_connection_id, direct_messages_topic_id=self
(
self,
animation: "FileInput | Animation",
duration: TimePeriod | None = None,
width: int | None = None,
height: int | None = None,
caption: str | None = None,
parse_mode: ODVInput[str] = DEFAULT_NONE,
disable_notification: ODVInput[bool] = DEFAULT_NONE,
reply_markup: "ReplyMarkup | None" = None,
caption_entities: Sequence["MessageEntity"] | None = None,
protect_content: ODVInput[bool] = DEFAULT_NONE,
message_thread_id: ODVInput[int] = DEFAULT_NONE,
has_spoiler: bool | None = None,
thumbnail: "FileInput | None" = None,
reply_parameters: "ReplyParameters | None" = None,
message_effect_id: str | None = None,
allow_paid_broadcast: bool | None = None,
show_caption_above_media: bool | None = None,
suggested_post_parameters: "SuggestedPostParameters | None" = None,
*,
reply_to_message_id: int | None = None,
allow_sending_without_reply: ODVInput[bool] = DEFAULT_NONE,
filename: str | None = None,
do_quote: bool | (_ReplyKwargs | None) = None,
read_timeout: ODVInput[float] = DEFAULT_NONE,
write_timeout: ODVInput[float] = DEFAULT_NONE,
connect_timeout: ODVInput[float] = DEFAULT_NONE,
pool_timeout: ODVInput[float] = DEFAULT_NONE,
api_kwargs: JSONDict | None = None,
)
| 2971 | ) |
| 2972 | |
| 2973 | async def reply_animation( |
| 2974 | self, |
| 2975 | animation: "FileInput | Animation", |
| 2976 | duration: TimePeriod | None = None, |
| 2977 | width: int | None = None, |
| 2978 | height: int | None = None, |
| 2979 | caption: str | None = None, |
| 2980 | parse_mode: ODVInput[str] = DEFAULT_NONE, |
| 2981 | disable_notification: ODVInput[bool] = DEFAULT_NONE, |
| 2982 | reply_markup: "ReplyMarkup | None" = None, |
| 2983 | caption_entities: Sequence["MessageEntity"] | None = None, |
| 2984 | protect_content: ODVInput[bool] = DEFAULT_NONE, |
| 2985 | message_thread_id: ODVInput[int] = DEFAULT_NONE, |
| 2986 | has_spoiler: bool | None = None, |
| 2987 | thumbnail: "FileInput | None" = None, |
| 2988 | reply_parameters: "ReplyParameters | None" = None, |
| 2989 | message_effect_id: str | None = None, |
| 2990 | allow_paid_broadcast: bool | None = None, |
| 2991 | show_caption_above_media: bool | None = None, |
| 2992 | suggested_post_parameters: "SuggestedPostParameters | None" = None, |
| 2993 | *, |
| 2994 | reply_to_message_id: int | None = None, |
| 2995 | allow_sending_without_reply: ODVInput[bool] = DEFAULT_NONE, |
| 2996 | filename: str | None = None, |
| 2997 | do_quote: bool | (_ReplyKwargs | None) = None, |
| 2998 | read_timeout: ODVInput[float] = DEFAULT_NONE, |
| 2999 | write_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3000 | connect_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3001 | pool_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3002 | api_kwargs: JSONDict | None = None, |
| 3003 | ) -> "Message": |
| 3004 | """Shortcut for:: |
| 3005 | |
| 3006 | await bot.send_animation( |
| 3007 | update.effective_message.chat_id, |
| 3008 | message_thread_id=update.effective_message.message_thread_id, |
| 3009 | business_connection_id=self.business_connection_id, |
| 3010 | direct_messages_topic_id=self.direct_messages_topic.topic_id, |
| 3011 | *args, |
| 3012 | **kwargs, |
| 3013 | ) |
| 3014 | |
| 3015 | For the documentation of the arguments, please see :meth:`telegram.Bot.send_animation`. |
| 3016 | |
| 3017 | .. versionchanged:: 21.1 |
| 3018 | |reply_same_thread| |
| 3019 | |
| 3020 | .. versionchanged:: 22.0 |
| 3021 | |quote_removed| |
| 3022 | |
| 3023 | Keyword Args: |
| 3024 | do_quote (:obj:`bool` | :obj:`dict`, optional): |do_quote| |
| 3025 | |
| 3026 | .. versionadded:: 20.8 |
| 3027 | |
| 3028 | Returns: |
| 3029 | :class:`telegram.Message`: On success, instance representing the message posted. |
| 3030 |