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

Method reply_chat_action

src/telegram/_message.py:3908–3950  ·  view source on GitHub ↗

Shortcut for:: await bot.send_chat_action( update.effective_message.chat_id, message_thread_id=update.effective_message.message_thread_id, business_connection_id=self.business_connection_id, *args, **k

(
        self,
        action: str,
        message_thread_id: ODVInput[int] = DEFAULT_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

3906 )
3907
3908 async def reply_chat_action(
3909 self,
3910 action: str,
3911 message_thread_id: ODVInput[int] = DEFAULT_NONE,
3912 *,
3913 read_timeout: ODVInput[float] = DEFAULT_NONE,
3914 write_timeout: ODVInput[float] = DEFAULT_NONE,
3915 connect_timeout: ODVInput[float] = DEFAULT_NONE,
3916 pool_timeout: ODVInput[float] = DEFAULT_NONE,
3917 api_kwargs: JSONDict | None = None,
3918 ) -> bool:
3919 """Shortcut for::
3920
3921 await bot.send_chat_action(
3922 update.effective_message.chat_id,
3923 message_thread_id=update.effective_message.message_thread_id,
3924 business_connection_id=self.business_connection_id,
3925 *args,
3926 **kwargs,
3927 )
3928
3929 For the documentation of the arguments, please see :meth:`telegram.Bot.send_chat_action`.
3930
3931 .. versionchanged:: 21.1
3932 |reply_same_thread|
3933
3934 .. versionadded:: 13.2
3935
3936 Returns:
3937 :obj:`bool`: On success, :obj:`True` is returned.
3938
3939 """
3940 return await self.get_bot().send_chat_action(
3941 chat_id=self.chat_id,
3942 message_thread_id=self._parse_message_thread_id(self.chat_id, message_thread_id),
3943 action=action,
3944 read_timeout=read_timeout,
3945 write_timeout=write_timeout,
3946 connect_timeout=connect_timeout,
3947 pool_timeout=pool_timeout,
3948 api_kwargs=api_kwargs,
3949 business_connection_id=self.business_connection_id,
3950 )
3951
3952 async def reply_game(
3953 self,

Callers 1

test_reply_actionMethod · 0.80

Calls 3

get_botMethod · 0.80
send_chat_actionMethod · 0.45

Tested by 1

test_reply_actionMethod · 0.64