text: import pyrogram
  from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton, CallbackQuery
  from pyrogram import Client, filters
  import re
  from pyrogram.errors import UserNotParticipant
  
  AUTH_CHANNEL = "-1001472327953"
  
  @Client.on_message(filters.text & filters.private & filters.incoming)
  async def filter(client, message):
      if message.text.startswith("/"):
          return
      if AUTH_CHANNEL:
          invite_link = await client.create_chat_invite_link(int(AUTH_CHANNEL))
          try:
              user = await client.get_chat_member(int(AUTH_CHANNEL), message.from_user.id)
              if user.status == "kicked":
                  await client.send_message(
                      chat_id=message.from_user.id,
                      text="Sorry Sir, You are Banned to use me.",
                      parse_mode="markdown",
                      disable_web_page_preview=True
                  )
                  return
          except UserNotParticipant:
              await client.send_message(
                  chat_id=message.from_user.id,
                  text="**Please Join My Updates Channel to use this Bot!**",
                  reply_markup=InlineKeyboardMarkup(
                      [
                          [
                              InlineKeyboardButton("Join Updates Channel", url=invite_link.invite_link)
                          ]
                      ]
                  ),
                  parse_mode="markdown"
              )
              return
          except Exception:
              await client.send_message(
                  chat_id=message.from_user.id,
                  text="Something went Wrong.",
                  parse_mode="markdown",
                  disable_web_page_preview=True
              )
              
  