skip to Main Content

Download Image Python Telegram API

I followed their brief tutorial on downloading an image but I'm encountering an exception: telegram.photosize.PhotoSize object at ... is not JSON serializable the function for catching the images looks like this: def photo(bot, update): file_id = update.message.photo[-1] newFile = bot.getFile(file_id)…

VIEW QUESTION

How can i get file_path of telegram bot – Telegram API

I have a telegram bot webhook message like { "update_id":236420475, "message":{ "message_id":26577, "from":{ "id":xxxxxxxx, "first_name":"DB", "last_name":"Ks", "username":"xxxxxxxx" }, "chat":{ "id":193044649, "first_name":"DB", "last_name":"Ks", "username":"xxxxxxxx", "type":"private" }, "date":1493266832, "voice":{ "duration":2, "mime_type":"audio/ogg", "file_id":"AwADBQADBAADQKMIVC978KStO6ZhAg", "file_size":7532 } } } From the telegram bot API documentation…

VIEW QUESTION

NDK Error occured while importing telegram source code from github – Telegram API

I downloaded telegram open source code for android from the following the link https://github.com/DrKLO/Telegram. While importing the project am getting the following errors: External Native Build Issues Build command failed. Error while executing process C:UsersuserAppDataLocalAndroidsdkndk -bundlendk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:UsersuserAndroidStudioProjectsTelegram-masterTMessagesProjjniAndroid.mk…

VIEW QUESTION
Back To Top
Search