From 65d995a8058609cb7d01fa7615b2ad5208b66156 Mon Sep 17 00:00:00 2001 From: Onur Atakan ULUSOY Date: Tue, 23 Apr 2024 21:34:57 +0300 Subject: [PATCH] Fixed number for telegram --- tiger/tools/communication/telegram/as_user/delete_message.py | 1 + tiger/tools/communication/telegram/as_user/get_last_messages.py | 1 + tiger/tools/communication/telegram/as_user/send_message.py | 1 + 3 files changed, 3 insertions(+) diff --git a/tiger/tools/communication/telegram/as_user/delete_message.py b/tiger/tools/communication/telegram/as_user/delete_message.py index 8beec90..e3c5fbc 100644 --- a/tiger/tools/communication/telegram/as_user/delete_message.py +++ b/tiger/tools/communication/telegram/as_user/delete_message.py @@ -11,6 +11,7 @@ def delete_message(id: int, message: str): :param message: str: """ + id = int(id) import nest_asyncio nest_asyncio.apply() diff --git a/tiger/tools/communication/telegram/as_user/get_last_messages.py b/tiger/tools/communication/telegram/as_user/get_last_messages.py index c979d37..9a3fce6 100644 --- a/tiger/tools/communication/telegram/as_user/get_last_messages.py +++ b/tiger/tools/communication/telegram/as_user/get_last_messages.py @@ -11,6 +11,7 @@ def get_last_messages(id: int, limit=100): :param limit: (Default value = 100) """ + id = int(id) import nest_asyncio nest_asyncio.apply() diff --git a/tiger/tools/communication/telegram/as_user/send_message.py b/tiger/tools/communication/telegram/as_user/send_message.py index 5618136..f73ab51 100644 --- a/tiger/tools/communication/telegram/as_user/send_message.py +++ b/tiger/tools/communication/telegram/as_user/send_message.py @@ -11,6 +11,7 @@ def send_message(id: int, message: str) -> str: :param message: str: """ + id = int(id) import nest_asyncio nest_asyncio.apply()