Shortcut for:: await bot.send_sticker( 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.d
(
self,
sticker: "FileInput | Sticker",
disable_notification: ODVInput[bool] = DEFAULT_NONE,
reply_markup: "ReplyMarkup | None" = None,
protect_content: ODVInput[bool] = DEFAULT_NONE,
message_thread_id: ODVInput[int] = DEFAULT_NONE,
emoji: str | None = None,
reply_parameters: "ReplyParameters | None" = None,
message_effect_id: str | None = None,
allow_paid_broadcast: bool | None = None,
suggested_post_parameters: "SuggestedPostParameters | None" = None,
*,
reply_to_message_id: int | None = None,
allow_sending_without_reply: ODVInput[bool] = DEFAULT_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,
)
| 3064 | ) |
| 3065 | |
| 3066 | async def reply_sticker( |
| 3067 | self, |
| 3068 | sticker: "FileInput | Sticker", |
| 3069 | disable_notification: ODVInput[bool] = DEFAULT_NONE, |
| 3070 | reply_markup: "ReplyMarkup | None" = None, |
| 3071 | protect_content: ODVInput[bool] = DEFAULT_NONE, |
| 3072 | message_thread_id: ODVInput[int] = DEFAULT_NONE, |
| 3073 | emoji: str | None = None, |
| 3074 | reply_parameters: "ReplyParameters | None" = None, |
| 3075 | message_effect_id: str | None = None, |
| 3076 | allow_paid_broadcast: bool | None = None, |
| 3077 | suggested_post_parameters: "SuggestedPostParameters | None" = None, |
| 3078 | *, |
| 3079 | reply_to_message_id: int | None = None, |
| 3080 | allow_sending_without_reply: ODVInput[bool] = DEFAULT_NONE, |
| 3081 | do_quote: bool | (_ReplyKwargs | None) = None, |
| 3082 | read_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3083 | write_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3084 | connect_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3085 | pool_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3086 | api_kwargs: JSONDict | None = None, |
| 3087 | ) -> "Message": |
| 3088 | """Shortcut for:: |
| 3089 | |
| 3090 | await bot.send_sticker( |
| 3091 | update.effective_message.chat_id, |
| 3092 | message_thread_id=update.effective_message.message_thread_id, |
| 3093 | business_connection_id=self.business_connection_id, |
| 3094 | direct_messages_topic_id=self.direct_messages_topic.topic_id, |
| 3095 | *args, |
| 3096 | **kwargs, |
| 3097 | ) |
| 3098 | |
| 3099 | For the documentation of the arguments, please see :meth:`telegram.Bot.send_sticker`. |
| 3100 | |
| 3101 | .. versionchanged:: 21.1 |
| 3102 | |reply_same_thread| |
| 3103 | |
| 3104 | .. versionchanged:: 22.0 |
| 3105 | |quote_removed| |
| 3106 | |
| 3107 | Keyword Args: |
| 3108 | do_quote (:obj:`bool` | :obj:`dict`, optional): |do_quote| |
| 3109 | |
| 3110 | .. versionadded:: 20.8 |
| 3111 | |
| 3112 | Returns: |
| 3113 | :class:`telegram.Message`: On success, instance representing the message posted. |
| 3114 | |
| 3115 | """ |
| 3116 | chat_id, effective_reply_parameters = await self._parse_quote_arguments( |
| 3117 | do_quote, reply_to_message_id, reply_parameters, allow_sending_without_reply |
| 3118 | ) |
| 3119 | message_thread_id = self._parse_message_thread_id(chat_id, message_thread_id) |
| 3120 | return await self.get_bot().send_sticker( |
| 3121 | chat_id=chat_id, |
| 3122 | sticker=sticker, |
| 3123 | disable_notification=disable_notification, |