Files
tgbot/include/tgbot.h
2026-01-06 18:01:20 +01:00

23 lines
380 B
C

#ifndef TGBOT_MAIN_H
#define TGBOT_MAIN_H
#include "common.h"
/**
* @brief Create a new Bot object.
*
* @param[in] token The Bot token (obtained from @BotFather).
*
* @return Bot pointer.
*/
tgbot_s *tgbot_new(char *token);
/**
* @brief Cleans the memory.
*
* @param[out] bot The Bot object.
*/
void tgbot_free(tgbot_s *bot);
#endif // TGBOT_H