Skip to content

Commit

Permalink
__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vasusen-code authored Dec 9, 2021
1 parent 4a64c87 commit 769e66f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions main/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ChauhanMahesh/Vasusen/DroneBots/COL

from telethon import TelegramClient
from decouple import config
import logging
import time

logging.basicConfig(format='[%(levelname) 5s/%(asctime)s] %(name)s: %(message)s',
level=logging.WARNING)

# Basics
API_ID = config("API_ID", default=None, cast=int)
API_HASH = config("API_HASH", default=None)
BOT_TOKEN = config("BOT_TOKEN", default=None)

bot = TelegramClient('bot', API_ID, API_HASH).start(bot_token=BOT_TOKEN)

0 comments on commit 769e66f

Please sign in to comment.