in a channel with telethon ? ( I Did use it with telegram APIs bot is there any way to do that with telethon ? )
bot.get_entity(chat).admin_rights or bot.get_permissions(chat, 'me').is_admin
'coroutine' object has no attribute 'is_admin'
await coroutine before getting values
like status = await client.get_permissions(new_text, 'me').is_admin ? It doesn't work
try to wrap it into parentheses status = await (client.get_permissions(new_text, 'me')).is_admin
Thanks . But It doesn't work too :(
he meant status = (await client.get_permissions(new_text, 'me')).is_admin
Обсуждают сегодня