mirror of
https://github.com/Redume/Shirino.git
synced 2025-07-03 18:50:55 +01:00
13 lines
382 B
Python
13 lines
382 B
Python
import yaml
|
|
from aiogram import Bot
|
|
from aiogram.client.default import DefaultBotProperties
|
|
from aiogram.enums import ParseMode
|
|
|
|
from database.server import Database
|
|
|
|
db = Database("/data/shirino.db")
|
|
config = yaml.safe_load(open("../config.yaml", "r", encoding="utf-8"))
|
|
bot = Bot(
|
|
token=config["telegram_token"],
|
|
default=DefaultBotProperties(parse_mode=ParseMode.HTML),
|
|
)
|