import logging from aiohttp import web from config import Config from telegram import telegram_bot, telegram_dispatcher from web import create_app config = Config() app = create_app(telegram_bot, telegram_dispatcher, config) logging.basicConfig(level=logging.INFO) if __name__ == '__main__': web.run_app(app, port=config.port)