style: format file

This commit is contained in:
2026-01-06 17:59:58 +01:00
parent ec2095caf8
commit 0114ca3c97
3 changed files with 12 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
BasedOnStyle: LLVM
UseTab: Always
IndentWidth: 4
TabWidth: 4
ColumnLimit: 0
AllowAllParametersOfDeclarationOnNextLine: false
BreakBeforeBinaryOperators: None
SpacesInParentheses: false
BinPackParameters: true
IndentWidth: 4
IndentCaseLabels: true
ColumnLimit: 120
PointerAlignment: Right
AllowShortFunctionsOnASingleLine: None

View File

@@ -265,7 +265,8 @@ tgbot_rc tgbot_get_me(tgbot_s *bot, tgbot_me_s *me) {
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];
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;
}
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];
tgbot_json_option options[4] = {

View File

@@ -32,7 +32,8 @@ tgbot_inlinekeyboardbutton_s *tgbot_inlinekb_button_at(tgbot_inlinekeyboard_s *k
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);
strncpy(button->text, text, sizeof(button->text) - 1);