[−][src]Module my_iot::services::telegram
Telegram bot service able to receive and send messages.
Structs
| Context | |
| Settings | |
| TelegramChat | |
| TelegramMessage | |
| TelegramResponse | |
| TelegramUpdate |
Enums
| TelegramChatId | |
| TelegramFile |
Constants
| GET_UPDATES_TIMEOUT |
|
| _IMPL_DESERIALIZE_FOR_Settings | |
| _IMPL_DESERIALIZE_FOR_TelegramChat | |
| _IMPL_DESERIALIZE_FOR_TelegramMessage | |
| _IMPL_DESERIALIZE_FOR_TelegramResponse | |
| _IMPL_DESERIALIZE_FOR_TelegramUpdate | |
| _IMPL_SERIALIZE_FOR_TelegramChatId | |
| _IMPL_SERIALIZE_FOR_TelegramFile |
Statics
| CLIENT_TIMEOUT | Global client timeout. Based on |
Functions
| call_api | Call Telegram Bot API method. |
| get_updates | |
| send_animation | |
| send_message | |
| send_photo | |
| send_readings | Send reading messages from the provided Telegram update. |
| spawn | Spawn the service. |
| spawn_consumer | Spawn thread that listens for |
| spawn_producer | Spawn thread that listens for Telegram updates and produces reading messages. |