randydev commited on
Commit
67c0772
1 Parent(s): 8206192

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -3
main.py CHANGED
@@ -265,8 +265,7 @@ async def chatbot_talk(client: Client, message: Message):
265
  async def main():
266
  await db.connect()
267
  await client.start()
268
- me = await client.get_me()
269
- LOGS.info(f"started bot: {me.first_name}")
270
 
271
  if __name__ == "__main__":
272
- client.run(main())
 
265
  async def main():
266
  await db.connect()
267
  await client.start()
268
+ LOGS.info(f"started bot: {client.first_name}")
 
269
 
270
  if __name__ == "__main__":
271
+ asyncio.run(main())