SendInlineBotResult
---functions--- messages.sendInlineBotResult#c0cf7646 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
Returns
| Updates |
Parameters
| silent | true | optional |
| background | true | optional |
| clear_draft | true | optional |
| hide_via | true | optional |
| peer | InputPeer | required |
| reply_to | InputReplyTo | optional |
| random_id | long | required |
| query_id | long | required |
| id | string | required |
| schedule_date | int | optional |
| send_as | InputPeer | optional |
| quick_reply_shortcut | InputQuickReplyShortcut | optional |
| allow_paid_stars | long | optional |
Example
The examples below use placeholder values. Replace them with real data before running the code.
▶ Minimal
import asyncio
import random
from ferogram import Client
app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")
async def main():
await app.start()
result = await app.raw.messages.SendInlineBotResult(
peer='username',
random_id=random.randrange(-2**63, 2**63),
query_id=-12398745604826,
id='some string here'
)
print(result)
asyncio.run(main())
The minimal example uses Ferogram's raw proxy shorthand. Peers can be passed as strings and required primitives get safe defaults. Expand Full API to see every parameter.
▶ Full API
import asyncio
import random
from ferogram import Client, raw
app = Client("my_session", api_id=12345, api_hash="0123456789abcdef0123456789abcdef")
async def main():
await app.start()
result = await app(raw.functions.messages.SendInlineBotResult(
silent=True,
background=True,
clear_draft=True,
hide_via=True,
peer=raw.types.InputPeerSelf(),
reply_to=raw.types.InputReplyToMessage(reply_to_msg_id=42),
random_id=random.randrange(-2**63, 2**63),
query_id=-12398745604826,
id='some string here',
schedule_date=42,
send_as=raw.types.InputPeerSelf(),
quick_reply_shortcut=raw.types.InputQuickReplyShortcutId(shortcut_id=0),
allow_paid_stars=-12398745604826
))
print(result)
asyncio.run(main())