Spaces:
Paused
Paused
Download plugins/user_id.py from dragxd/File-Sharing-Bot: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/spaces/dragxd/File-Sharing-Bot/resolve/main/plugins/user_id.py
- Command line
-
hf download hf://spaces/dragxd/File-Sharing-Bot/plugins/user_id.py
-
curl -L -o user_id.py https://huggingface.co/spaces/dragxd/File-Sharing-Bot/resolve/main/plugins/user_id.py
581 Bytes
| 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 | |
| ) | |
| # Jishu Developer | |
| # Don't Remove Credit 🥺 | |
| # Telegram Channel @Madflix_Bots | |
| # Backup Channel @JishuBotz | |
| # Developer @JishuDeveloper | |