php - How to receive images with the Telegram API? -
is possible receive images (and store on server) sent user bot?
if image sent, receive json post. link telegram bot-api description. don't know if it's possible receive whole image or not: https://core.telegram.org/bots/api#available-types
{"update_id":xxxxx, "message":{"message_id":2222,"from":{"id":xxxxx,"first_name":"christoph","last_name":"xxxxx"},"chat":{"id":xxxxx,"first_name":"christoph","last_name":"xxxxx"},"date":1435704055,"forward_from":{"id":xxxxx,"first_name":"christoph","last_name":"xxxxx"},"forward_date":1435703471,"photo":[{"file_id":"agadagadmaoxg9kknwf4o978o3emqb_ewsoabi5s-wwq46dqir0aagi","file_size":998,"width":51,"height":90},{"file_id":"agadagadmaoxg9kknwf4o978o3emqb_ewsoabhax4hvxyqktib0aagi","file_size":9912,"width":180,"height":320},{"file_id":"agadagadmaoxg9kknwf4o978o3emqb_ewsoabnzzdwp3st2whx0aagi","file_size":41020,"width":450,"height":800},{"file_id":"agadagadmaoxg9kknwf4o978o3emqb_ewsoabe0gg-aefj7yhh0aagi","file_size":66058,"width":720,"height":1280}]}}
telegram support download file getfile
:
you can see in api documentation: https://core.telegram.org/bots/api#getfile
Comments
Post a Comment