telegram-cli-backup icon indicating copy to clipboard operation
telegram-cli-backup copied to clipboard

Limits?

Open mrPsycho opened this issue 8 years ago • 3 comments
trafficstars

Hello!

Do you now limits of this? is it possible to retrieve all text messages from 2014 till 2017? it is about 100000 of them

mrPsycho avatar Jun 06 '17 19:06 mrPsycho

Hello Yaroslav,

I think there is no such fixed limit, but it is limited due to some technical front-end implementations; maybe lua scripting is limited in handling large data.

I was able to reach about 5000-6000 messages, but maybe more than that was possible if the size of messages were smaller

On Jun 6, 2017 11:30 PM, "Yaroslav Nakonechnikov" [email protected] wrote:

Hello!

Do you now limits of this? is it possible to retrieve all text messages from 2014 till 2017? it is about 100000 of them

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/psamim/telegram-cli-backup/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AKACYFmHEI2aHQ4guPZMqCvx34FV67Trks5sBaHegaJpZM4NxxbJ .

ali-shamakhi avatar Jun 06 '17 19:06 ali-shamakhi

There are limits in Telegram API. You can only fetch 3000 messages on every request. You can send multiple requests getting 3000 each time. To do this you can use OFFSET, there is an open pull request for telegram-cli for its Lua bindings: https://github.com/vysheng/tg/pull/987

And see this issue about using offsets: https://github.com/psamim/telegram-cli-backup/issues/12

psamim avatar Jun 07 '17 08:06 psamim

Sorry for misleading info I have, I did double check my results; the data was duplicated in the output somehow! That was my fault.

On Jun 7, 2017 12:56 PM, "Samim Pezeshki" [email protected] wrote:

There are limits in Telegram API. You can only fetch 3000 messages on every request. You can send multiple requests getting 3000 each time. To do this you can use OFFSET, there is an open pull request for telegram-cli for its Lua bindings: vysheng/tg#987 https://github.com/vysheng/tg/pull/987

And see this issue about using offsets: #12 https://github.com/psamim/telegram-cli-backup/issues/12

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/psamim/telegram-cli-backup/issues/16#issuecomment-306726231, or mute the thread https://github.com/notifications/unsubscribe-auth/AKACYK_6oUNLNEM9TCyYhwv9MIlJV7J0ks5sBl6XgaJpZM4NxxbJ .

ali-shamakhi avatar Jun 07 '17 08:06 ali-shamakhi