-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreate_bot.py
More file actions
26 lines (22 loc) · 1.23 KB
/
create_bot.py
File metadata and controls
26 lines (22 loc) · 1.23 KB
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
#
# Контакты разработчика:
# VK: vk.com/dimawinchester
# Telegram: t.me/teanus
# Github: github.com/teanus
#
#
#
# ████████╗███████╗ █████╗ ███╗ ██╗██╗ ██╗███████╗
# ╚══██╔══╝██╔════╝██╔══██╗████╗ ██║██║ ██║██╔════╝
# ██║ █████╗ ███████║██╔██╗ ██║██║ ██║███████╗
# ██║ ██╔══╝ ██╔══██║██║╚██╗██║██║ ██║╚════██║
# ██║ ███████╗██║ ██║██║ ╚████║╚██████╔╝███████║
# ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚══════╝
import os
from aiogram import Bot, Dispatcher
from aiogram.fsm.storage.memory import MemoryStorage
from dotenv import load_dotenv
load_dotenv()
storage = MemoryStorage()
bot = Bot(os.getenv("TOKEN"))
dp = Dispatcher(storage=storage)