31 May 2025
Amirtext not yet in the index
class DataBase:
def __init__(self):
self.connection = None
async def connect():
self.connection = aiomysql.connect()
Ali | A.Wolver.Pخب بلاخره پروژت با یه async def main یی اجرا میشه دیگه
خب اینطور زدم:
async def main():
database.create_connection()
client.run()
و اینجا ران نمیشه و ارور میده
Amirخب اینطور زدم:
async def main():
database.create_connection()
client.run()
و اینجا ران نمیشه و ارور میده
اینم میشه
await client.start()
await idle()
await client.stop()
Ali | A.Wolver.Pاینم میشه
await client.start()
await idle()
await client.stop()
حالا یسوال
من تو client اومدم پلاگین دادم