Skip to content

Commit

Permalink
Updated To Pyro 2
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTeamAlexa authored Nov 28, 2023
1 parent a9b4974 commit 4789fc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AlexaMusic/plugins/bot/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import asyncio

from pyrogram import filters
from pyrogram import Client, filters
from pyrogram import enums, filters
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message
from youtubesearchpython.__future__ import VideosSearch

Expand Down Expand Up @@ -250,7 +250,7 @@ async def welcome(client, message: Message):
_ = get_string(language)
if member.id == app.id:
chat_type = message.chat.type
if chat_type != "supergroup":
if chat_type != enums.ChatType.SUPERGROUP:
await message.reply_text(_["start_6"])
return await app.leave_chat(message.chat.id)
if chat_id in await blacklisted_chats():
Expand Down

0 comments on commit 4789fc1

Please sign in to comment.