Notifications

The ml_research_toolkit.notifications.telegram_client contains classes: - ml_research_toolkit.notifications.telegram_client.TelegramUpdaterSingleton - ml_research_toolkit.notifications.telegram_client.TelegramClient

class ml_research_toolkit.notifications.telegram_client.TelegramClient(token=None, name=None)[source]

Class for notification sender to telegram.

send_text(text)[source]

Sent simple text message to telegram.

Parameters

text (str) – message to send

class ml_research_toolkit.notifications.telegram_client.TelegramUpdaterSingleton[source]

Singleton class to prevent error while one Telegram updater load twice.

static get(token)[source]
Returns

returns updater which related to given token

Return type

telegram.ext.Updater