refactoring project structure
This commit is contained in:
20
include/types.h
Normal file
20
include/types.h
Normal 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
|
||||
Reference in New Issue
Block a user