Skip to content

getChats

Sahri Riza Umami edited this page Mar 14, 2017 · 4 revisions

Returns list of chats in the right order, chats are sorted by (order, chat_id) in decreasing order.

getChats(offset_order, offset_chat_id, limit)

For example, to get list of chats from the beginning, the offset_order should be equal 2^63 - 1.

Option Description
offset_order Chat order to return chats from.
offset_chat_id Chat identifier to return chats from.
limit Maximum number of chats to be returned.

Example

  • Get list of chats from the beginning, and limit the results to 20.

    getChats(9223372036854775807, 0, 20)

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally