Spaces:
Paused
Paused
| from pyrogram import filters, enums | |
| from pyrogram.types import Message | |
| from bot import Bot | |
| async def showid(client, message): | |
| chat_type = message.chat.type | |
| if chat_type == enums.ChatType.PRIVATE: | |
| user_id = message.chat.id | |
| await message.reply_text( | |
| f"<b>Your User ID Is :</b> <code>{user_id}</code>", | |
| quote=True | |
| ) | |