fixes coroutine
object has no attribute id
This commit is contained in:
parent
12ce701f2d
commit
7ceece808f
6
main.py
6
main.py
@ -7,8 +7,8 @@ from pytgcalls import idle
|
|||||||
|
|
||||||
def all_info(bot, user):
|
def all_info(bot, user):
|
||||||
global BOT_ID, USERBOT_ID
|
global BOT_ID, USERBOT_ID
|
||||||
getme = bot.get_me()
|
getme = await bot.get_me()
|
||||||
getme1 = user.get_me()
|
getme1 = await user.get_me()
|
||||||
BOT_ID = getme.id
|
BOT_ID = getme.id
|
||||||
USERBOT_ID = getme1.id
|
USERBOT_ID = getme1.id
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ async def mulai_bot():
|
|||||||
print("[INFO]: STARTING PYTGCALLS CLIENT")
|
print("[INFO]: STARTING PYTGCALLS CLIENT")
|
||||||
await call_py.start()
|
await call_py.start()
|
||||||
print("[INFO]: GENERATING CLIENT PROFILE")
|
print("[INFO]: GENERATING CLIENT PROFILE")
|
||||||
await all_info(bot, user)
|
all_info(bot, user)
|
||||||
await idle()
|
await idle()
|
||||||
print("[INFO]: STOPPING BOT")
|
print("[INFO]: STOPPING BOT")
|
||||||
await bot.stop()
|
await bot.stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user