-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (25 loc) · 725 Bytes
/
main.py
File metadata and controls
31 lines (25 loc) · 725 Bytes
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
31
"""
==========================================
Title: Hydrogram Bot Template
Description: Template for creating a Hydrogram bot.
Author: Nuhman (https://github.com/nuhmanpk)
Created: 22-Jun-2024
License: MIT License
==========================================
"""
from decouple import config
from hydrogram import Client
BOT_TOKEN = config('BOT_TOKEN')
API_ID = config('API_ID', cast=int)
API_HASH = config('API_HASH')
# SESSION_STRING = config('SESSION_STRING')
Bot = Client(
"Hydrogram Bot",
bot_token=BOT_TOKEN,
api_id=API_ID,
api_hash=API_HASH,
plugins=dict(root="bot"),
# in_memory=True,
# session_string=SESSION_STRING
)
Bot.run(print('Bot is Cooking...'))