This commit is contained in:
levina 2021-11-03 00:02:52 +07:00 committed by GitHub
parent 6d1c960ba6
commit 713e34f43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,8 @@ async def play(_, m: Message):
popo = await bot.get_me() popo = await bot.get_me()
papa = popo papa = popo
pepe = papa.id pepe = papa.id
except Exception as e:
return await m.reply_text(f"error:\n\n{e}")
chat_title = m.chat.title chat_title = m.chat.title
a = await bot.get_chat_member(m.chat.id, pepe) a = await bot.get_chat_member(m.chat.id, pepe)
if a.status != "administrator": if a.status != "administrator":
@ -274,6 +276,8 @@ async def stream(_, m: Message):
popo = await bot.get_me() popo = await bot.get_me()
papa = popo papa = popo
pepe = papa.id pepe = papa.id
except Exception as e:
return await m.reply_text(f"error:\n\n{e}")
chat_title = m.chat.title chat_title = m.chat.title
a = await bot.get_chat_member(m.chat.id, pepe) a = await bot.get_chat_member(m.chat.id, pepe)
if a.status != "administrator": if a.status != "administrator":