MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / reply_video

Method reply_video

src/telegram/_message.py:3141–3238  ·  view source on GitHub ↗

Shortcut for:: await bot.send_video( 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.dir

(
        self,
        video: "FileInput | Video",
        duration: TimePeriod | None = None,
        caption: str | None = None,
        disable_notification: ODVInput[bool] = DEFAULT_NONE,
        reply_markup: "ReplyMarkup | None" = None,
        width: int | None = None,
        height: int | None = None,
        parse_mode: ODVInput[str] = DEFAULT_NONE,
        supports_streaming: bool | 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,
        cover: "FileInput | None" = None,
        start_timestamp: int | 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,
    )

Source from the content-addressed store, hash-verified

3139 )
3140
3141 async def reply_video(
3142 self,
3143 video: "FileInput | Video",
3144 duration: TimePeriod | None = None,
3145 caption: str | None = None,
3146 disable_notification: ODVInput[bool] = DEFAULT_NONE,
3147 reply_markup: "ReplyMarkup | None" = None,
3148 width: int | None = None,
3149 height: int | None = None,
3150 parse_mode: ODVInput[str] = DEFAULT_NONE,
3151 supports_streaming: bool | None = None,
3152 caption_entities: Sequence["MessageEntity"] | None = None,
3153 protect_content: ODVInput[bool] = DEFAULT_NONE,
3154 message_thread_id: ODVInput[int] = DEFAULT_NONE,
3155 has_spoiler: bool | None = None,
3156 thumbnail: "FileInput | None" = None,
3157 reply_parameters: "ReplyParameters | None" = None,
3158 message_effect_id: str | None = None,
3159 allow_paid_broadcast: bool | None = None,
3160 show_caption_above_media: bool | None = None,
3161 cover: "FileInput | None" = None,
3162 start_timestamp: int | None = None,
3163 suggested_post_parameters: "SuggestedPostParameters | None" = None,
3164 *,
3165 reply_to_message_id: int | None = None,
3166 allow_sending_without_reply: ODVInput[bool] = DEFAULT_NONE,
3167 filename: str | None = None,
3168 do_quote: bool | (_ReplyKwargs | None) = None,
3169 read_timeout: ODVInput[float] = DEFAULT_NONE,
3170 write_timeout: ODVInput[float] = DEFAULT_NONE,
3171 connect_timeout: ODVInput[float] = DEFAULT_NONE,
3172 pool_timeout: ODVInput[float] = DEFAULT_NONE,
3173 api_kwargs: JSONDict | None = None,
3174 ) -> "Message":
3175 """Shortcut for::
3176
3177 await bot.send_video(
3178 update.effective_message.chat_id,
3179 message_thread_id=update.effective_message.message_thread_id,
3180 business_connection_id=self.business_connection_id,
3181 direct_messages_topic_id=self.direct_messages_topic.topic_id,
3182 *args,
3183 **kwargs,
3184 )
3185
3186 For the documentation of the arguments, please see :meth:`telegram.Bot.send_video`.
3187
3188 .. versionchanged:: 21.1
3189 |reply_same_thread|
3190
3191 .. versionchanged:: 22.0
3192 |quote_removed|
3193
3194 Keyword Args:
3195 do_quote (:obj:`bool` | :obj:`dict`, optional): |do_quote|
3196
3197 .. versionadded:: 20.8
3198

Callers 1

test_reply_videoMethod · 0.80

Calls 5

get_botMethod · 0.80
send_videoMethod · 0.45

Tested by 1

test_reply_videoMethod · 0.64