MCPcopy Create free account
hub / github.com/CryptoSignal/Crypto-Signal / __init__

Method __init__

app/notifiers/telegram_client.py:17–28  ·  view source on GitHub ↗

Initialize TelegramNotifier class Args: token (str): The telegram API token. chat_id (str): The chat ID you want the bot to send messages to.

(self, token, chat_id, parse_mode)

Source from the content-addressed store, hash-verified

15 """
16
17 def __init__(self, token, chat_id, parse_mode):
18 """Initialize TelegramNotifier class
19
20 Args:
21 token (str): The telegram API token.
22 chat_id (str): The chat ID you want the bot to send messages to.
23 """
24
25 self.logger = structlog.get_logger()
26 self.bot = telegram.Bot(token=token)
27 self.chat_id = chat_id
28 self.parse_mode = parse_mode
29
30
31 @retry(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected