refactoring project structure

This commit is contained in:
2025-05-21 12:27:03 +02:00
parent af71544585
commit b2592d7334
12 changed files with 462 additions and 428 deletions

20
include/types.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef TGBOT_TYPES_H
#define TGBOT_TYPES_H
#include "common.h"
/**
* A structure to represent InlineKeyboardMarkup
*/
struct tgbot_inlinekeyboardmarkup_t {
char text[200]; /**< If this field is empty the button will be skipped */
char url[200]; /**< (Optional) URL of the button */
char callback_data[64]; /**< Callback data */
};
typedef struct tgbot_inlinekeyboardmarkup_t tgbot_inlinekeyboardmarkup;
tgbot_rc
tgbot_allocate_inlinekeyboardmarkup(tgbot_inlinekeyboardmarkup ***keyboard, size_t rows, size_t columns);
tgbot_rc tgbot_deallocate_inlinekeyboardmarkup(tgbot_inlinekeyboardmarkup **keyboard, size_t rows);
#endif