randydev commited on
Commit
c8ec360
·
verified ·
1 Parent(s): 6135f4b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -14
main.py CHANGED
@@ -242,21 +242,7 @@ async def chatbot_talk(client: Client, message: Message):
242
  await db._update_chatbot_chat_in_db(message.from_user.id, backup_chat)
243
  except Exception as e:
244
  await message.reply_text(str(e))
245
- # End of handler
246
 
247
- """"
248
- async def test_main():
249
- try:
250
- await db.connect()
251
- LOGS.info("Connected to the database.")
252
- # await client.start()
253
- # LOGS.info("Bot started successfully.")
254
- # await idle()
255
- # LOGS.info("Bot stopping...")
256
- # await client.stop()
257
- except Exception as e:
258
- LOGS.error(f"Unexpected error: {e}")
259
- """
260
 
261
  if __name__ == "__main__":
262
  try:
 
242
  await db._update_chatbot_chat_in_db(message.from_user.id, backup_chat)
243
  except Exception as e:
244
  await message.reply_text(str(e))
 
245
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
 
247
  if __name__ == "__main__":
248
  try: