-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offset #12
Comments
Hi, |
I had 32000 messages in one account and it is not possible to retrieve all in one connection. So it has to be send in smaller requests by using offset. Anyway, thanks I wrote a program in php and solved my problem. |
Is it a limit impose by Telegram or you got some error? On Thu, Feb 4, 2016, 2:53 PM Mahdi Jaberzadeh Ansari <
|
There was not any error. Just does not return anything. history [limit] [offset] Prints messages with this peer (most recent message lower). Also marks messages as read |
By looking at https://github.com/vysheng/tg/blob/master/lua-tg.c#L1128, it seems that in the Lua binding the offset is hardcoded as 0. |
I made a pull request and added a new function to the Lua binding to be able to get history with limit and offset, waiting to be merged. |
Nice, Thanks. |
@psamim Can only load 3000 messages, 3001 gives nothing |
@vstet Are you using my pull request for tg or the master branch of tg? |
@psamim just the main instructions from the README.org |
@vstet Then it is a limit from Telegram API, you can fetch 3000 by 3000 using offsets. |
@mjza could you publish it? |
Hi. |
I would like to save the information in a database type sqlite3 |
@ToMas-hack I have not tested this scripts for channels. |
Hi, I want to retrieve all my 35000 messages of one of my contacts.
It is possible to send offset in history method but I don't know how to add this option.
Can you guide me?
The text was updated successfully, but these errors were encountered: