diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-06-10 22:29:24 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-06-10 22:29:24 +0300 |
commit | 3790c2205396cf860738f297e6ddc49cd2b2a03f (patch) | |
tree | b1ba6f227d3389071dd27346adcd24a593f8b327 /src/home/telegram | |
parent | 2631c58961c2f5ec90be560a8f5152fe27339a90 (diff) |
new config: port openwrt_logger and webapiclient
Diffstat (limited to 'src/home/telegram')
-rw-r--r-- | src/home/telegram/_botutil.py | 2 | ||||
-rw-r--r-- | src/home/telegram/bot.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/home/telegram/_botutil.py b/src/home/telegram/_botutil.py index 6d1ee8f..b551a55 100644 --- a/src/home/telegram/_botutil.py +++ b/src/home/telegram/_botutil.py @@ -3,7 +3,7 @@ import traceback from html import escape from telegram import User -from home.api import WebAPIClient as APIClient +from home.api import WebApiClient as APIClient from home.api.types import BotType from home.api.errors import ApiResponseError diff --git a/src/home/telegram/bot.py b/src/home/telegram/bot.py index 7e22263..e6ebc6e 100644 --- a/src/home/telegram/bot.py +++ b/src/home/telegram/bot.py @@ -21,7 +21,7 @@ from telegram.ext.filters import BaseFilter from telegram.error import TimedOut from home.config import config -from home.api import WebAPIClient +from home.api import WebApiClient from home.api.types import BotType from ._botlang import lang, languages @@ -522,7 +522,7 @@ def _logging_callback_handler(update: Update, context: CallbackContext): def enable_logging(bot_type: BotType): - api = WebAPIClient(timeout=3) + api = WebApiClient(timeout=3) api.enable_async() global _reporting |