Message.reply_inline_bot_result()#
- Message.reply_inline_bot_result()#
Bound method reply_inline_bot_result of
Message
.Use as a shortcut for:
await client.send_inline_bot_result( chat_id=message.chat.id, query_id=query_id, result_id=result_id )
Example
await message.reply_inline_bot_result(query_id, result_id)
- Parameters:
query_id (
int
) – Unique identifier for the answered query.result_id (
str
) – Unique identifier for the result that was chosen.quote (
bool
, optional) – IfTrue
, the message will be sent as a reply to this message. If reply_to_message_id is passed, this parameter will be ignored. Defaults toTrue
in group chats andFalse
in private chats.disable_notification (
bool
, optional) – Sends the message silently. Users will receive a notification with no sound.message_thread_id (
int
, optional) – Unique identifier of a message thread to which the message belongs. For supergroups only.reply_to_message_id (
bool
, optional) – If the message is a reply, ID of the original message.quote_text (
str
) – Text of the quote to be sent.parse_mode (
ParseMode
, optional) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes together.quote_entities (List of
MessageEntity
) – List of special entities that appear in quote text, which can be specified instead of parse_mode.
- Returns:
On success, the sent Message is returned.
- Raises:
RPCError – In case of a Telegram RPC error.