#pragma once #include "esp_err.h" #ifdef CONFIG_MIMI_CHAN_TELEGRAM 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); esp_err_t telegram_set_token(const char *token); #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