messages.getSplitRanges
Get message ranges for saving the user's chat history
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.getSplitRanges({
}));
console.log(result); // prints the result
})();
TL schema
---functions---
messages.getSplitRanges#1cff7e08 = Vector<MessageRange>;
Parameters
Name
Type
Description
Result
Vector[MessageRange](https://core.telegram.org/type/MessageRange)
Possible errors
Code
Type
Description
Can bots use this methd ?
yes
Related pages
Last updated
Was this helpful?