Callback Listener
Listens for a callback update
Last updated
Listens for a callback update
Last updated
Parameters
chat_id (int
,optional) – Unique identifier (int) of the target chat.
message_id (int
,optional) – Unique message identifier inside this chat.
inline_message_id (str
, optional) – Identifier of the sent inline message.
filters (, optional) – Pass one or more filters to allow only a subset of chosen inline results to be passed in your function.
timeout (int,
optional) – To specify the timeout duration in seconds for a client to listen for a message.
Returns :
Example
Parameters
chat_id (int
) – Unique identifier (int) of the target chat.
text (str
) – Text of the message to be sent.
reply_markup ( | | | , optional) – Additional interface options. An object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
filters (, optional) – Pass one or more filters to allow only a subset of chosen inline results to be passed in your function.
timeout (int,
optional) – To specify the timeout duration in seconds for a client to listen for a message.
parse_mode (, optional) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes together.
entities (List of ) – List of special entities that appear in message text, which can be specified instead of parse_mode.
disable_web_page_preview (bool
, optional) – Disables link previews for links in this message.
disable_notification (bool
, optional) – Sends the message silently. Users will receive a notification with no sound.
reply_to_message_id (int
, optional) – If the message is a reply, ID of the original message.
schedule_date (, optional) – Date when the message will be automatically sent.
protect_content (bool
, optional) – Protects the contents of the sent message from forwarding and saving.
Example
Parameters
chat_id (int
,optional) – Unique identifier (int) of the target chat.
message_id (int
,optional) – Unique message identifier inside this chat.
inline_message_id (str
, optional) – Identifier of the sent inline message.
Returns : None
Example
Returns :