Download bot.py from nik9076/n: direct link, hf CLI and curl.
- Browser
- Download file 692 Bytes
-
https://huggingface.co/spaces/nik9076/n/resolve/main/bot.py
- Command line
-
hf download hf://spaces/nik9076/n/bot.py
-
curl -L -o bot.py https://huggingface.co/spaces/nik9076/n/resolve/main/bot.py
692 Bytes
| import os | |
| from pyrogram import Client, filters | |
| # --- आपकी नई डिटेल्स यहाँ हैं --- | |
| API_ID = 11099708 | |
| API_HASH = "3b8ddf3f92d4b9f897777d4fe2a245e2" | |
| BOT_TOKEN = "8549005160:AAGzglynTg6GC4IBraH9XmdYMzPEf0d-0os" | |
| app = Client( | |
| "simple_live_bot", | |
| api_id=API_ID, | |
| api_hash=API_HASH, | |
| bot_token=BOT_TOKEN | |
| ) | |
| def start_handler(client, message): | |
| # /start करने पर यह मैसेज आएगा | |
| message.reply_text("I am live") | |
| if __name__ == "__main__": | |
| print("बॉट सफलतापूर्ण शुरू हो गया है...") | |
| app.run() | |