Skip to content
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

Export history limit #11

Closed
ghost opened this issue Dec 23, 2015 · 4 comments
Closed

Export history limit #11

ghost opened this issue Dec 23, 2015 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 23, 2015

Hi Samim,

If possible, please take a look at the source and see if you can make it work to keep history more than 500+
Right now I only can use 500 which is not adequate.
For 800 configuration, I got the following error after the messages have been exported:
*** lua: telegram-cli-backup/backup.lua:15: bad argument #1 to 'write' (string expected, got nil)

Thanks

@psamim
Copy link
Owner

psamim commented Dec 24, 2015

@narbehaj
Welcome. I updated the script and now it checks for nil values upon write. I am not aware of any limits. Telegram may impose message limits but the script itself only asks for the last N messages from Telegram servers. See if your problem is solved or not.

@ghost
Copy link
Author

ghost commented Dec 24, 2015

Thank you for the update.
I got:
*** lua: /home/narbeh/tg/bin/telegram-cli-backup/backup.lua:39: attempt to concatenate global 'sql' (a nil value)

2000 value for history was fine, but no output for 3000

@psamim
Copy link
Owner

psamim commented Dec 24, 2015

@narbehaj
Silly mistake!
Fixed, try again. :)

@psamim psamim added the bug label Dec 24, 2015
@ghost
Copy link
Author

ghost commented Dec 24, 2015

Update:

Now it works without getting error.

Thank you so much. Loved this.

@ghost ghost closed this as completed Dec 24, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant