diff options
author | Dmitrii Morozov <snoopdesigns@gmail.com> | 2025-01-05 22:33:28 +0100 |
---|---|---|
committer | Dmitrii Morozov <snoopdesigns@gmail.com> | 2025-01-05 22:33:28 +0100 |
commit | 694eadd7f06f65b925d2c06a3492bd7d9153d016 (patch) | |
tree | 2c9d993c5882218c980b3af6e091b2d5dbf9c597 /telegram_bot/__init__.py | |
parent | 71c11730713f7d5ebe07175d5701cbe8434bb5da (diff) |
Add query to accept or decline new friends
Diffstat (limited to 'telegram_bot/__init__.py')
-rw-r--r-- | telegram_bot/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telegram_bot/__init__.py b/telegram_bot/__init__.py index c25af95..a50c71b 100644 --- a/telegram_bot/__init__.py +++ b/telegram_bot/__init__.py @@ -47,12 +47,13 @@ class TelegramBot: async def answer_callback_query(self, callback_query_id): await self.__bot.answer_callback_query(callback_query_id=callback_query_id) - async def send_message_to_all(self, message_text: str): + async def send_message_to_all(self, message_text: str, reply_markup = None): for user in self.__user_repository.get_all_users(): try: await self.__bot.send_message( user[0], message_text, + reply_markup=reply_markup, parse_mode='MarkdownV2' ) except Exception as error: |