answer here
def create_mention(user):
return f"[{get_display_name(user)}](tg://user?id={user.id})"
@client.on(events.ChatAction()) async def chataction(event): with contextlib.suppress(Exception): if event.user_joined or event.user_added: user = await event.get_user() full_name = "" if user.first_name: full_name += f"{user.first_name}" if user.last_name: full_name += f" {user.last_name}" msg = await event.reply( f"Hai [{full_name}](tg://user?id={user.id}), Selamat bergabung di grup!" ) await asyncio.sleep(100) await msg.delete()
Обсуждают сегодня