diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-02 01:19:30 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-02 01:19:30 +0300 |
commit | 19cb4e484e755c45224a38479756bec48cdd6162 (patch) | |
tree | bab51393d880c560d9180f127f6133bee171f576 /src/home | |
parent | 85822d836366028ee66215c19a4c44ae618c2ccb (diff) |
polaris_kettle_bot: when the boiling is done, notify user more effectively
Diffstat (limited to 'src/home')
-rw-r--r-- | src/home/bot/wrapper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/home/bot/wrapper.py b/src/home/bot/wrapper.py index 5f399ce..df7175e 100644 --- a/src/home/bot/wrapper.py +++ b/src/home/bot/wrapper.py @@ -286,10 +286,10 @@ class Wrapper: text=text, parse_mode='HTML') - def notify_user(self, user_id: int, text: Union[str, Exception]) -> None: + def notify_user(self, user_id: int, text: Union[str, Exception], **kwargs) -> None: if isinstance(text, Exception): text = exc2text(text) - self.updater.bot.send_message(chat_id=user_id, text=text, parse_mode='HTML') + self.updater.bot.send_message(chat_id=user_id, text=text, parse_mode='HTML', **kwargs) def send_photo(self, user_id, **kwargs): self.updater.bot.send_photo(chat_id=user_id, **kwargs) |