MCPcopy
hub / github.com/CryptoSignal/Crypto-Signal / notify

Method notify

app/notifiers/telegram_client.py:36–48  ·  view source on GitHub ↗

Send the notification. Args: message (str): The message to send.

(self, message)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

chunk_messageMethod · 0.80

Tested by

no test coverage detected