This commit is contained in:
levina 2022-02-06 13:58:16 +07:00 committed by GitHub
parent 7219a1b384
commit 4d1aa2ac46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ async def vplay(c: Client, m: Message):
user_id = m.from_user.id user_id = m.from_user.id
user_xd = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})" user_xd = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
if await is_gbanned_user(user_id): if await is_gbanned_user(user_id):
await message.reply_text(f"❗️ {user_xd} **You've been blocked from using this bot!") await message.reply_text(f"❗️ {user_xd} **You've blocked from using this bot!**")
return return
if m.sender_chat: if m.sender_chat:
return await m.reply_text( return await m.reply_text(
@ -336,7 +336,7 @@ async def vstream(c: Client, m: Message):
user_id = m.from_user.id user_id = m.from_user.id
user_xd = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})" user_xd = f"[{m.from_user.first_name}](tg://user?id={m.from_user.id})"
if await is_gbanned_user(user_id): if await is_gbanned_user(user_id):
await message.reply_text(f"❗️ {user_xd} **You've been blocked from using this bot!") await message.reply_text(f"❗️ {user_xd} **You've blocked from using this bot!**")
return return
if m.sender_chat: if m.sender_chat:
return await m.reply_text( return await m.reply_text(