Download bot/plugins/start.py from yttapon/README: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/yttapon/README/resolve/main/bot/plugins/start.py
- Command line
-
hf download hf://spaces/yttapon/README/bot/plugins/start.py
-
curl -L -o start.py https://huggingface.co/spaces/yttapon/README/resolve/main/bot/plugins/start.py
501 Bytes
| from pyrogram import Client, filters | |
| from pyrogram.types import Message | |
| async def start_handler(client: Client, message: Message): | |
| user = message.from_user | |
| name = user.first_name if user else "Pengguna" | |
| await message.reply_text( | |
| f"👋 Halo {name}!\n\n" | |
| "Saya adalah *Template Bot* menggunakan Pyrogram.\n" | |
| "Silakan gunakan bot ini sesuai kebutuhan kamu 🚀", | |
| quote=True | |
| ) |