python's telepot library is no longer being maintained and updated in new telegram bot api update editMessageMedia was added
how to use it with http GET/POST request ? ( requests library or any other lib )
python's telepot library is no longer being maintained and updated in new telegram bot api update editMessageMedia was added
how to use it with http GET/POST request ? ( requests library or any other lib )
Copyright © 2021 Jogjafile Inc.
You can invoke the endpoint by sending a request via
requests
like this but note that there are various maintained bot libraries out there you can utilize.set the values for
CHAT_ID
,MESSAGE_ID
andBOT_TOKEN
. Also, update'./photo.jpg'
with the path to the new file.One last thing if the media you are trying to edit is not photo (audio and other files), update the line
'type' : 'photo'
as well. (check out https://core.telegram.org/bots/api#inputmedia for details)