Skip to content

Commit aa6d3fd

Browse files
authored
Merge pull request #371 from reo7sp/api-10.4
Telegram API 10.4
2 parents 6a0591c + 623a184 commit aa6d3fd

17 files changed

Lines changed: 5602 additions & 1353 deletions

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Documentation is located [here](http://reo7sp.github.io/tgbot-cpp).
1010

1111
## State
1212

13-
- [x] Telegram Bot API 10.3.
13+
- [x] Telegram Bot API 10.4.
1414

1515

1616
## Example

‎api/codegen.yaml‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
types:
2-
BotCommandScopeChatMember:
3-
fields:
4-
user_id: { type: std::int64_t }
2+
AreaPosition:
3+
aliases: [StoryAreaPosition]
54
Chat:
65
fields:
76
type:
@@ -34,7 +33,11 @@ types:
3433
TextMention: text_mention
3534
CustomEmoji: custom_emoji
3635
DateTime: date_time
36+
TonAddress: ton_address
37+
BankCardNumber: bank_card_number
3738
RichText:
39+
append_union_types:
40+
- std::shared_ptr<RichTextTonAddress>
3841
extra_union_types:
3942
- std::string
4043
- std::vector<std::shared_ptr<RichText>>
@@ -176,6 +179,8 @@ api:
176179
sendRichMessage:
177180
supports_attach_references: true
178181
direct_exclude: [ephemeral_message_parameters]
182+
args:
183+
chat_id: {declaration_required: true}
179184
sendRichMessageDraft:
180185
args_order: [chat_id, draft_id, rich_message, message_thread_id, can_stop, keep_on_stop]
181186
sendMessage:
@@ -187,7 +192,7 @@ api:
187192
args_order: [chat_id, photo, caption, reply_parameters, reply_markup, parse_mode, disable_notification, caption_entities, message_thread_id, protect_content, has_spoiler, business_connection_id, allow_paid_broadcast, callback_query_id, direct_messages_topic_id, message_effect_id, receiver_user_id, show_caption_above_media, suggested_post_parameters]
188193
legacy_ephemeral_parameters: true
189194
sendPoll:
190-
args_order: [chat_id, question, options, disable_notification, reply_parameters, reply_markup, is_anonymous, type, allows_multiple_answers, correct_option_id, explanation, explanation_parse_mode, explanation_entities, open_period, close_date, is_closed, message_thread_id, protect_content, business_connection_id]
195+
args_order: [chat_id, question, options, disable_notification, reply_parameters, reply_markup, is_anonymous, type, allows_multiple_answers, explanation, explanation_parse_mode, explanation_entities, open_period, close_date, is_closed, message_thread_id, protect_content, business_connection_id]
191196
args:
192197
is_anonymous: {default: true}
193198
sendSticker:

‎api/telegram-bot-api.yaml‎

Lines changed: 1212 additions & 157 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)