style: format file
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
|
BasedOnStyle: LLVM
|
||||||
UseTab: Always
|
UseTab: Always
|
||||||
IndentWidth: 4
|
|
||||||
TabWidth: 4
|
TabWidth: 4
|
||||||
ColumnLimit: 0
|
IndentWidth: 4
|
||||||
AllowAllParametersOfDeclarationOnNextLine: false
|
IndentCaseLabels: true
|
||||||
BreakBeforeBinaryOperators: None
|
ColumnLimit: 120
|
||||||
SpacesInParentheses: false
|
PointerAlignment: Right
|
||||||
BinPackParameters: true
|
AllowShortFunctionsOnASingleLine: None
|
||||||
|
|||||||
@@ -265,7 +265,8 @@ tgbot_rc tgbot_get_me(tgbot_s *bot, tgbot_me_s *me) {
|
|||||||
return TGBOT_OK;
|
return TGBOT_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
tgbot_rc tgbot_send_message(tgbot_s *bot, int64_t chat_id, const char *text, const char *parse_mode, tgbot_inlinekeyboard_s *keyboard) {
|
tgbot_rc tgbot_send_message(tgbot_s *bot, int64_t chat_id, const char *text, const char *parse_mode,
|
||||||
|
tgbot_inlinekeyboard_s *keyboard) {
|
||||||
char url[1024];
|
char url[1024];
|
||||||
|
|
||||||
tgbot_json_option options[4] = {
|
tgbot_json_option options[4] = {
|
||||||
@@ -288,7 +289,8 @@ tgbot_rc tgbot_send_message(tgbot_s *bot, int64_t chat_id, const char *text, con
|
|||||||
return TGBOT_OK;
|
return TGBOT_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
char url[1024];
|
char url[1024];
|
||||||
|
|
||||||
tgbot_json_option options[4] = {
|
tgbot_json_option options[4] = {
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ tgbot_inlinekeyboardbutton_s *tgbot_inlinekb_button_at(tgbot_inlinekeyboard_s *k
|
|||||||
return &keyboard->buttons[row * keyboard->columns + column];
|
return &keyboard->buttons[row * keyboard->columns + column];
|
||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
||||||
tgbot_inlinekeyboardbutton_s *button = tgbot_inlinekb_button_at(keyboard, row, column);
|
tgbot_inlinekeyboardbutton_s *button = tgbot_inlinekb_button_at(keyboard, row, column);
|
||||||
|
|
||||||
strncpy(button->text, text, sizeof(button->text) - 1);
|
strncpy(button->text, text, sizeof(button->text) - 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user