testing tg bot library and set the db connection for dev and production

This commit is contained in:
Hosein
2025-12-28 10:49:50 +03:30
parent b16ed91822
commit 67a76250ab
4 changed files with 150 additions and 33 deletions
+3 -3
View File
@@ -22,6 +22,6 @@ def ensure_no_webhook():
if __name__ == "__main__":
if ensure_no_webhook():
bot = get_bot()
print("🤖 Bot is polling locally...")
bot.polling(non_stop=True)
bot = get_bot()
print("🤖 Bot is polling locally...")
bot.polling(non_stop=True)