messages.SendInlineBotResult
- class pyrogram.raw.functions.messages.SendInlineBotResult
Send a result obtained using messages.getInlineBotResults.
- Details:
Layer:
223ID:
C0CF7646
- Parameters:
peer (
InputPeer) – Destinationrandom_id (
int64-bit) – Random ID to avoid resending the same queryquery_id (
int64-bit) – Query ID from messages.getInlineBotResultsid (
str) – Result ID from messages.getInlineBotResultssilent (
bool, optional) – Whether to send the message silently (no notification will be triggered on the other client)background (
bool, optional) – Whether to send the message in backgroundclear_draft (
bool, optional) – Whether to clear the drafthide_via (
bool, optional) – Whether to hide the via @botname in the resulting message (only for bot usernames encountered in the config)reply_to (
InputReplyTo, optional) – If set, indicates that the message should be sent in reply to the specified message or story.schedule_date (
int32-bit, optional) – Scheduled message date for scheduled messagessend_as (
InputPeer, optional) – Send this message as the specified peerquick_reply_shortcut (
InputQuickReplyShortcut, optional) – Add the message to the specified quick reply shortcut », instead.allow_paid_stars (
int64-bit, optional) – For paid messages », specifies the amount of Telegram Stars the user has agreed to pay in order to send the message.
- Returns:
TL Schema
messages.sendInlineBotResult#c0cf7646
flags:#
silent:flags.5?true
background:flags.6?true
clear_draft:flags.7?true
hide_via:flags.11?true
peer:InputPeer
reply_to:flags.0?InputReplyTo
random_id:long
query_id:long
id:string
schedule_date:flags.10?int
send_as:flags.13?InputPeer
quick_reply_shortcut:flags.17?InputQuickReplyShortcut
allow_paid_stars:flags.21?long
= Updates
Parameter Tree
true (optional)true (optional)true (optional)true (optional)InputPeerInputPeerEmptyInputPeerSelfInputPeerChatlongInputPeerUserlonglongInputPeerChannellonglongInputPeerUserFromMessageInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputReplyTo (optional)InputReplyToMessageintint (optional)InputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessagestring (optional)Vector < MessageEntity > (optional)MessageEntityUnknownintintMessageEntityMentionintintMessageEntityHashtagintintMessageEntityBotCommandintintMessageEntityUrlintintMessageEntityEmailintintMessageEntityBoldintintMessageEntityItalicintintMessageEntityCodeintintMessageEntityPreintintstringMessageEntityTextUrlintintstringMessageEntityMentionNameintintlongInputMessageEntityMentionNameintintInputUserInputUserEmptyInputUserSelfInputUserInputUserFromMessageMessageEntityPhoneintintMessageEntityCashtagintintMessageEntityUnderlineintintMessageEntityStrikeintintMessageEntityBankCardintintMessageEntitySpoilerintintMessageEntityCustomEmojiintintlongMessageEntityBlockquotetrue (optional)intintMessageEntityFormattedDatetrue (optional)true (optional)true (optional)true (optional)true (optional)true (optional)intintintint (optional)InputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageint (optional)InputReplyToStoryInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintInputReplyToMonoForumInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessagelonglongstringint (optional)InputPeer (optional)InputPeerEmptyInputPeerSelfInputPeerChatlongInputPeerUserlonglongInputPeerChannellonglongInputPeerUserFromMessageInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputQuickReplyShortcut (optional)InputQuickReplyShortcutstringintlong (optional)Example
await app.invoke(
SendInlineBotResult(
silent=None,
background=None,
clear_draft=None,
hide_via=None,
peer=await app.resolve_peer(chat_id),
reply_to=InputReplyToMessage(
reply_to_msg_id=0,
top_msg_id=None,
reply_to_peer_id=None,
quote_text=None,
quote_entities=None,
quote_offset=None,
monoforum_peer_id=None,
todo_item_id=None
),
random_id=app.rnd_id(),
query_id=0,
id="text",
schedule_date=0,
send_as=await app.resolve_peer(chat_id),
quick_reply_shortcut=InputQuickReplyShortcut(shortcut="text"),
allow_paid_stars=0,
)
)