Spaces:
Paused
Paused
Download database/adduser.py from imseldrith/Adv_bot: direct link, hf CLI and curl.
- Browser
- Download file 266 Bytes
-
https://huggingface.co/spaces/imseldrith/Adv_bot/resolve/main/database/adduser.py
- Command line
-
hf download hf://spaces/imseldrith/Adv_bot/database/adduser.py
-
curl -L -o adduser.py https://huggingface.co/spaces/imseldrith/Adv_bot/resolve/main/database/adduser.py
266 Bytes
| from pyrogram import Client | |
| from database.access import clinton | |
| from pyrogram.types import Message | |
| async def AddUser(bot: Client, update: Message): | |
| if not await clinton.is_user_exist(update.from_user.id): | |
| await clinton.add_user(update.from_user.id) | |