zerobias / telegram-mtproto

Telegram client api (MTProto) library
MIT License
620 stars 136 forks source link

How to get all dialogs? #216

Closed hosseinGanjyar closed 5 years ago

hosseinGanjyar commented 6 years ago

I need to get all dialogs (just groups), but below code just returned about 150 dialogs of all my 500 dialogs. Why? Any idea?

  const dialogs = await client('messages.getDialogs', {
    offset: 0,
    max_id: 1111111,
    limit: 500,
  })

I changed offset to 100 / 200 / 300 through, but same result is returned, yet.