generated from nuhmanpk/hydrogram-bot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
30 lines (25 loc) · 720 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""
==========================================
Title: Pyrogram Bot Template
Description: Template for creating a Pyrogram bot.
Author: Nuhman (https://github.com/nuhmanpk)
Created: 22-Jun-2024
License: MIT License
==========================================
"""
from decouple import config
from hydrogram import Client
from bot.scheduler import start_scheduler
BOT_TOKEN = config('BOT_TOKEN')
API_ID = config('API_ID', cast=int)
API_HASH = config('API_HASH')
Bot = Client(
"SnapNutriV2 Bot",
bot_token=BOT_TOKEN,
api_id=API_ID,
api_hash=API_HASH,
plugins=dict(root="bot"),
)
if __name__ == "__main__":
start_scheduler(Bot)
Bot.run(print('Bot is Cooking...'))