Send the notification. Args: message (str): The message to send.
(self, message)
| 34 | wait=wait_fixed(5) |
| 35 | ) |
| 36 | def notify(self, message): |
| 37 | """Send the notification. |
| 38 | |
| 39 | Args: |
| 40 | message (str): The message to send. |
| 41 | """ |
| 42 | |
| 43 | max_message_size = 4096 |
| 44 | message_chunks = self.chunk_message(message=message, max_message_size=max_message_size) |
| 45 | #print(message_chunks) |
| 46 | #exit() |
| 47 | for message_chunk in message_chunks: |
| 48 | self.bot.send_message(chat_id=self.chat_id, text=message_chunk, parse_mode=self.parse_mode) |
nothing calls this directly
no test coverage detected