T
T
TeleQuest1232021-02-19 01:15:46
Python
TeleQuest123, 2021-02-19 01:15:46

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

1 answer(s)
S
Sergey Karbivnichy, 2021-02-19
@hottabxp

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 question

Ask a Question

731 491 924 answers to any question