style: format header files

This commit is contained in:
2026-01-06 18:01:20 +01:00
parent 0114ca3c97
commit b401e8c4e4
3 changed files with 6 additions and 5 deletions

View File

@@ -13,10 +13,12 @@ tgbot_rc tgbot_request(const char *url, struct memory_buffer **mb, json_object *
/* Methods */ /* Methods */
tgbot_rc tgbot_get_me(tgbot_s *bot, tgbot_me_s *me); tgbot_rc tgbot_get_me(tgbot_s *bot, tgbot_me_s *me);
tgbot_rc tgbot_send_message(tgbot_s *bot, int64_t chat_id, const char *text, const char *parse_mode, tgbot_inlinekeyboard_s *reply_markup); tgbot_rc tgbot_send_message(tgbot_s *bot, int64_t chat_id, const char *text, const char *parse_mode,
tgbot_inlinekeyboard_s *reply_markup);
tgbot_rc tgbot_send_dice(tgbot_s *bot, int64_t chat_id, const char *emoji); tgbot_rc tgbot_send_dice(tgbot_s *bot, int64_t chat_id, const char *emoji);
/* Updating Methods */ /* Updating Methods */
tgbot_rc tgbot_edit_message_text(tgbot_s *bot, int64_t chat_id, long message_id, const char *text, tgbot_inlinekeyboard_s *keyboard); tgbot_rc tgbot_edit_message_text(tgbot_s *bot, int64_t chat_id, long message_id, const char *text,
tgbot_inlinekeyboard_s *keyboard);
#endif #endif

View File

@@ -2,8 +2,6 @@
#define TGBOT_MAIN_H #define TGBOT_MAIN_H
#include "common.h" #include "common.h"
#include "methods.h"
#include "types.h"
/** /**
* @brief Create a new Bot object. * @brief Create a new Bot object.

View File

@@ -47,7 +47,8 @@ tgbot_inlinekeyboard_s *tgbot_inlinekb_new(size_t rows, size_t columns);
* *
* @return TGBOT_OK on success. * @return TGBOT_OK on success.
*/ */
tgbot_rc tgbot_inlinekb_button(tgbot_inlinekeyboard_s *keyboard, size_t row, size_t column, const char *text, const char *url, const char *callback_data); tgbot_rc tgbot_inlinekb_button(tgbot_inlinekeyboard_s *keyboard, size_t row, size_t column, const char *text,
const char *url, const char *callback_data);
/** /**
* @brief Returns a pointer to the keyboard's button. * @brief Returns a pointer to the keyboard's button.