messages.sendInlineBotResult
Example
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.messages.sendInlineBotResult({
silent: true,
background: true,
clearDraft: true,
hideVia: true,
peer: new Api.InputPeer({...}),
replyToMsgId: 2934528,
randomId: 7448617,
queryId: 388190,
id: 'random string here',
scheduleDate: 5444600,
}));
console.log(result); // prints the result
})();TL schema
Parameters
Result
Possible errors
Can bots use this methd ?
yes
Related pages
Last updated