-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
downloda image issue from LUA script #1718
Comments
Tell me the lua script or function. |
this is some example of mycode, if msg.media then function scan(extra,success,result) |
And witch line comes "lua: /root/.telegram-cli/server.lua:1101: bad argument #1 to 'sub' (string expected, got boolean)" |
This comment has been minimized.
This comment has been minimized.
I just produce new error like this [0%Down]> load_photo 18 so it mean load_photo() function not working anymore just ignore this error "lua: /root/.telegram-cli/server.lua:1101: bad argument #1 to 'sub' (string expected, got boolean)" |
I cannot download image from LUA script, it seem there is new API update from telegram, this issue happen this month for me August 2021. I used this image ( QR/Text ) download from telegram-cli and process the image with QRscan/Barcode scan and also read the text with tesseract for OCR. and sometimes use telegram-cli for insert my inventory device take a photo from telegram with caption and process by telegram-cli using LUA, why I still use telegram-cli it fastest then telegram bot.
@vysheng
1629263184.639254 error for query 'download part' #6997632093975428096: #400 FILEREF_UPGRADE_NEEDED
*** 1629263184.639317 lua: /root/.telegram-cli/server.lua:1101: bad argument #1 to 'sub' (string expected, got boolean)
*** 1629263184.645329 Notification API_ERROR_UPDATE_UNOFFICIAL_84: Error. Please update your app to the latest version or switch to the official version of Telegram.
thank you
The text was updated successfully, but these errors were encountered: