Shortcut for:: await bot.send_video_note( 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=sel
(
self,
video_note: "FileInput | VideoNote",
duration: TimePeriod | None = None,
length: int | None = None,
disable_notification: ODVInput[bool] = DEFAULT_NONE,
reply_markup: "ReplyMarkup | None" = None,
protect_content: ODVInput[bool] = DEFAULT_NONE,
message_thread_id: ODVInput[int] = DEFAULT_NONE,
thumbnail: "FileInput | 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,
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,
)
| 3238 | ) |
| 3239 | |
| 3240 | async def reply_video_note( |
| 3241 | self, |
| 3242 | video_note: "FileInput | VideoNote", |
| 3243 | duration: TimePeriod | None = None, |
| 3244 | length: int | None = None, |
| 3245 | disable_notification: ODVInput[bool] = DEFAULT_NONE, |
| 3246 | reply_markup: "ReplyMarkup | None" = None, |
| 3247 | protect_content: ODVInput[bool] = DEFAULT_NONE, |
| 3248 | message_thread_id: ODVInput[int] = DEFAULT_NONE, |
| 3249 | thumbnail: "FileInput | None" = None, |
| 3250 | reply_parameters: "ReplyParameters | None" = None, |
| 3251 | message_effect_id: str | None = None, |
| 3252 | allow_paid_broadcast: bool | None = None, |
| 3253 | suggested_post_parameters: "SuggestedPostParameters | None" = None, |
| 3254 | *, |
| 3255 | reply_to_message_id: int | None = None, |
| 3256 | allow_sending_without_reply: ODVInput[bool] = DEFAULT_NONE, |
| 3257 | filename: str | None = None, |
| 3258 | do_quote: bool | (_ReplyKwargs | None) = None, |
| 3259 | read_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3260 | write_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3261 | connect_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3262 | pool_timeout: ODVInput[float] = DEFAULT_NONE, |
| 3263 | api_kwargs: JSONDict | None = None, |
| 3264 | ) -> "Message": |
| 3265 | """Shortcut for:: |
| 3266 | |
| 3267 | await bot.send_video_note( |
| 3268 | update.effective_message.chat_id, |
| 3269 | message_thread_id=update.effective_message.message_thread_id, |
| 3270 | business_connection_id=self.business_connection_id, |
| 3271 | direct_messages_topic_id=self.direct_messages_topic.topic_id, |
| 3272 | *args, |
| 3273 | **kwargs, |
| 3274 | ) |
| 3275 | |
| 3276 | For the documentation of the arguments, please see :meth:`telegram.Bot.send_video_note`. |
| 3277 | |
| 3278 | .. versionchanged:: 21.1 |
| 3279 | |reply_same_thread| |
| 3280 | |
| 3281 | .. versionchanged:: 22.0 |
| 3282 | |quote_removed| |
| 3283 | |
| 3284 | Keyword Args: |
| 3285 | do_quote (:obj:`bool` | :obj:`dict`, optional): |do_quote| |
| 3286 | |
| 3287 | .. versionadded:: 20.8 |
| 3288 | |
| 3289 | Returns: |
| 3290 | :class:`telegram.Message`: On success, instance representing the message posted. |
| 3291 | |
| 3292 | """ |
| 3293 | chat_id, effective_reply_parameters = await self._parse_quote_arguments( |
| 3294 | do_quote, reply_to_message_id, reply_parameters, allow_sending_without_reply |
| 3295 | ) |
| 3296 | message_thread_id = self._parse_message_thread_id(chat_id, message_thread_id) |
| 3297 | return await self.get_bot().send_video_note( |