2026-02-05 18:55:28 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "esp_err.h"
|
|
|
|
|
|
2026-04-03 20:15:26 +08:00
|
|
|
#ifdef CONFIG_MIMI_CHAN_TELEGRAM
|
2026-02-05 18:55:28 +08:00
|
|
|
esp_err_t telegram_bot_init(void);
|
|
|
|
|
esp_err_t telegram_bot_start(void);
|
|
|
|
|
esp_err_t telegram_send_message(const char *chat_id, const char *text);
|
2026-02-08 20:42:10 +08:00
|
|
|
esp_err_t telegram_set_token(const char *token);
|
2026-04-03 20:15:26 +08:00
|
|
|
#else
|
|
|
|
|
static inline esp_err_t telegram_bot_init(void) { return ESP_OK; }
|
|
|
|
|
static inline esp_err_t telegram_bot_start(void) { return ESP_OK; }
|
|
|
|
|
static inline esp_err_t telegram_send_message(const char *chat_id, const char *text) {
|
|
|
|
|
(void)chat_id; (void)text;
|
|
|
|
|
return ESP_OK;
|
|
|
|
|
}
|
|
|
|
|
static inline esp_err_t telegram_set_token(const char *token) {
|
|
|
|
|
(void)token;
|
|
|
|
|
return ESP_OK;
|
|
|
|
|
}
|
|
|
|
|
#endif
|