Module pipelines.rj_cor.bot_semaforo.tasks

Tasks for cor

Functions

def format_message(dataframe: pandas.core.frame.DataFrame) ‑> pandas.core.series.Series

Formats the message before sending it.

def get_data() ‑> pandas.core.frame.DataFrame

Returns the dataframe with the alerts.

def get_token_and_group_id(secret_path: str) ‑> Tuple[str, int]

Returns Telegram token and group ID from a secret file.

def send_messages(token: str, group_id: str, messages: List[str]) ‑> None

Sends the alerts to the Telegram group.