skip to Main Content

Defining which option returned by JSON is greater according to the combination of two data values – Telegram API

In order for me to download an image published on a Telegram channel, I need this path: var contents = JSON.parse(e.postData.contents); Logger.log(contents.channel_post.photo); And the answer is: [{ "file_id":"AAAAA", "file_size":11111, "width":253, "height":320 },{ "file_id":"BBBBB", "file_size":22222, "width":632, "height":800 },{ "file_id":"CCCCC", "file_size":44444, "width":1400,…

VIEW QUESTION

Python Telethon get all admins of group – Telegram API

I want to get admins of Telegram groups, I try with this code but I get empty response, my code client.connect() if not client.is_user_authorized(): client.send_code_request(phone) client.sign_in(phone, input('Enter the code: ')) result = client(functions.channels.GetParticipantsRequest( channel='mychannel', filter=types.ChannelParticipantsAdmins(), offset=42, limit=100, hash=0 )) print(result.stringify())…

VIEW QUESTION
Back To Top
Search