~cytrogen/evi-run

ref: 5f3a6a73341cbd0c6d0712cd5046198c9228d282 evi-run/bot/utils/create_bot.py -rw-r--r-- 429 bytes
5f3a6a73 — Bendy Update localization files (I18N) 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import os

from aiogram import Bot
from aiogram.client.default import DefaultBotProperties


def get_bot(token: str) -> Bot:
    bot = Bot(token=token, default=DefaultBotProperties(parse_mode='HTML',
                                                        link_preview_is_disabled=True
                                                        )
              )
    return bot


bot = get_bot(token=os.getenv('TELEGRAM_BOT_TOKEN'))