Answer the question
In order to leave comments, you need to log in
How to replace files in Telegram bot without changing code in python?
Wrote a bot.
Uploaded to the server.
The bot involves sending a photo to the feed when you click on a button. This photo should change frequently to another one after a couple of days. I know that you can simply update the photo on the server itself, just throwing a new photo into the folder and replacing the old one. But what if I need to specify the telegram FILE ID of the photo? Do you really need to constantly go into the code and insert the FILE ID of a new photo there every time? It's a terrible hemorrhoid. Are there any solutions?
PS newbie.
Thank you.
Answer the question
In order to leave comments, you need to log in
There is no task that cannot be automated with Python!
Are there any solutions?There is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question