text: from telethon import custom, events
  from telethon.tl.types import Chat
  from telethon.utils import get_display_name
  
  from beastx.Configs import Config
  from . import *
  
  @beast.on(
      events.NewMessage(
          incoming=True,
          blacklist_chats=Config.UB_BLACK_LIST_CHAT,
          func=lambda e: (e.mentioned),
      )
  )
  async def all_messages_catcher(event):
      if Config.TAG_FEATURE == "DISABLE":
          return
      # the bot might not have the required access_hash to mention the appropriate PM
      await event.forward_to(Config.TG_BOT_USER_NAME_BF_HER)
      # construct message
      # the message format is stolen from @MasterTagAlertBot
      ammoca_message = ""
  
      who_ = await event.client.get_entity(event.sender_id)
      if who_.bot or who_.verified or who_.support:
          return
  
      who_m = f"[{get_display_name(who_)}](tg://user?id={who_.id})"
  
      where_ = await event.client.get_entity(event.chat_id)
  
      where_m = get_display_name(where_)
      button_text = "Check 🚶"
  
      if isinstance(where_, Chat):
          message_link = f"https://t.me/c/{where_.id}/{event.id}"
      else:
          # not an official link,
          # only works in DrKLO/Telegram,
          # for some reason
          message_link = f"tg://openmessage?chat_id={where_.id}&message_id={event.id}"
          # Telegram is weird :\
  
      ammoca_message += f"User {who_m} Have Tagged You Here -> [{where_m}]({message_link}) \nCheck Message 👇 "
      log_chat = Config.PRIVATE_GROUP_ID
      await tgbot.send_message(
          log_chat,
          message=ammoca_message,
          link_preview=False,
          buttons=[[custom.Button.url(button_text, message_link)]],
      )
  