diff options
Diffstat (limited to 'project/telegramapicommunicator.py')
| -rw-r--r-- | project/telegramapicommunicator.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/project/telegramapicommunicator.py b/project/telegramapicommunicator.py index 7fdb29c..a4b6964 100644 --- a/project/telegramapicommunicator.py +++ b/project/telegramapicommunicator.py @@ -27,7 +27,10 @@ class TelegramCommunicator(BaseCommunicator): TelegramCommunicator.send_raw("{}: {}".format(data["user"], data["text"])) @staticmethod - def send_raw(message): + def send_raw(message, chat_id=None): + if chat_id is None: + chat_id = TelegramCommunicator.chat_id + try: TelegramCommunicator.bot.sendMessage(TelegramCommunicator.chat_id, message) |
