All configuration is now done exclusively through mimi_secrets.h at build time. Removed NVS read/write logic, CLI config commands (wifi_set, set_tg_token, set_api_key, set_model, set_proxy, clear_proxy, set_search_key), and setter functions from all modules. CLI retains debug/maintenance commands only. Updated all documentation to reflect the change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
504 B
C
23 lines
504 B
C
#pragma once
|
|
|
|
#include "esp_err.h"
|
|
|
|
/**
|
|
* Initialize the Telegram bot.
|
|
*/
|
|
esp_err_t telegram_bot_init(void);
|
|
|
|
/**
|
|
* Start the Telegram polling task (long polling on Core 0).
|
|
*/
|
|
esp_err_t telegram_bot_start(void);
|
|
|
|
/**
|
|
* Send a text message to a Telegram chat.
|
|
* Automatically splits messages longer than 4096 chars.
|
|
* @param chat_id Telegram chat ID (numeric string)
|
|
* @param text Message text (supports Markdown)
|
|
*/
|
|
esp_err_t telegram_send_message(const char *chat_id, const char *text);
|
|
|