I have a telegram bot and I need to update it without stopping it.
Something like uvicorn when we were running an app.
( uvirorn filename:appname --reload
)
I need such a thing for pyrogram.
from pyrogram import Client
app = Client(...)
@app.on_message()
def OnMessage(client, message):
... # I change this section's code. And I want it to apply without stopping code.
app.run()
I used the reloading module, but it didn't work. If you know a solution or module for this, please share it with me.