Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Bot API to 7.3.0 #77

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![.NET Core](https://github.com/Dolfik1/Funogram/workflows/.NET/badge.svg)
[![NuGet](https://img.shields.io/nuget/v/Funogram.svg)](https://www.nuget.org/packages/Funogram/)
[![NuGet](https://img.shields.io/nuget/v/Funogram.Telegram.svg)](https://www.nuget.org/packages/Funogram.Telegram/)
[![NuGet](https://img.shields.io/badge/Bot%20API-7.2-blue?logo=telegram)](https://www.nuget.org/packages/Funogram.Telegram/)
[![NuGet](https://img.shields.io/badge/Bot%20API-7.3-blue?logo=telegram)](https://www.nuget.org/packages/Funogram.Telegram/)

<img src="https://github.com/Dolfik1/Funogram/raw/master/docs/files/img/logo.png" alt="Funogram Logo" width="200" align="right" />

Expand Down
76 changes: 50 additions & 26 deletions src/Funogram.Generator/out/methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -453,7 +453,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -623,7 +623,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -752,7 +752,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -865,7 +865,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -1010,7 +1010,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -1147,7 +1147,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand All @@ -1159,7 +1159,7 @@
{
"OriginalName": "sendVoice",
"ConvertedName": "SendVoice",
"Description": "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.",
"Description": "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.",
"Fields": [
{
"OriginalName": "business_connection_id",
Expand Down Expand Up @@ -1252,7 +1252,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -1349,7 +1349,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -1479,7 +1479,7 @@
{
"OriginalName": "live_period",
"ConvertedName": "LivePeriod",
"Description": "Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.",
"Description": "Period in seconds during which the location will be updated (see Live Locations, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.",
"OriginalFieldType": "Integer",
"ConvertedFieldType": "int64",
"Optional": true
Expand Down Expand Up @@ -1527,7 +1527,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -1656,7 +1656,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -1753,7 +1753,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -1799,12 +1799,28 @@
"ConvertedFieldType": "string",
"Optional": false
},
{
"OriginalName": "question_parse_mode",
"ConvertedName": "QuestionParseMode",
"Description": "Mode for parsing entities in the question. See formatting options for more details. Currently, only custom emoji entities are allowed",
"OriginalFieldType": "String",
"ConvertedFieldType": "string",
"Optional": true
},
{
"OriginalName": "question_entities",
"ConvertedName": "QuestionEntities",
"Description": "A JSON-serialized list of special entities that appear in the poll question. It can be specified instead of question_parse_mode",
"OriginalFieldType": "Array of MessageEntity",
"ConvertedFieldType": "MessageEntity[]",
"Optional": true
},
{
"OriginalName": "options",
"ConvertedName": "Options",
"Description": "A JSON-serialized list of answer options, 2-10 strings 1-100 characters each",
"OriginalFieldType": "Array of String",
"ConvertedFieldType": "string[]",
"Description": "A JSON-serialized list of 2-10 answer options",
"OriginalFieldType": "Array of InputPollOption",
"ConvertedFieldType": "InputPollOption[]",
"Optional": false
},
{
Expand Down Expand Up @@ -1858,7 +1874,7 @@
{
"OriginalName": "explanation_entities",
"ConvertedName": "ExplanationEntities",
"Description": "A JSON-serialized list of special entities that appear in the poll explanation, which can be specified instead of parse_mode",
"Description": "A JSON-serialized list of special entities that appear in the poll explanation. It can be specified instead of explanation_parse_mode",
"OriginalFieldType": "Array of MessageEntity",
"ConvertedFieldType": "MessageEntity[]",
"Optional": true
Expand Down Expand Up @@ -1914,7 +1930,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -1987,7 +2003,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -2347,7 +2363,7 @@
{
"OriginalName": "can_edit_stories",
"ConvertedName": "CanEditStories",
"Description": "Pass True if the administrator can edit stories posted by other users",
"Description": "Pass True if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat\u0027s story archive",
"OriginalFieldType": "Boolean",
"ConvertedFieldType": "bool",
"Optional": true
Expand Down Expand Up @@ -2897,7 +2913,7 @@
{
"OriginalName": "getChat",
"ConvertedName": "GetChat",
"Description": "Use this method to get up to date information about the chat. Returns a Chat object on success.",
"Description": "Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success.",
"Fields": [
{
"OriginalName": "chat_id",
Expand All @@ -2908,8 +2924,8 @@
"Optional": false
}
],
"OriginalReturnType": "Chat",
"ConvertedReturnType": "Chat"
"OriginalReturnType": "ChatFullInfo",
"ConvertedReturnType": "ChatFullInfo"
},
{
"OriginalName": "getChatAdministrators",
Expand Down Expand Up @@ -3928,6 +3944,14 @@
"ConvertedFieldType": "float",
"Optional": false
},
{
"OriginalName": "live_period",
"ConvertedName": "LivePeriod",
"Description": "New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged",
"OriginalFieldType": "Integer",
"ConvertedFieldType": "int64",
"Optional": true
},
{
"OriginalName": "horizontal_accuracy",
"ConvertedName": "HorizontalAccuracy",
Expand Down Expand Up @@ -4201,7 +4225,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account.",
"Description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
"OriginalFieldType": "InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply",
"ConvertedFieldType": "Markup",
"Optional": true
Expand Down Expand Up @@ -5272,7 +5296,7 @@
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "A JSON-serialized object for an inline keyboard. If empty, one \u0027Play game_title\u0027 button will be shown. If not empty, the first button must launch the game. Not supported for messages sent on behalf of a business account.",
"Description": "A JSON-serialized object for an inline keyboard. If empty, one \u0027Play game_title\u0027 button will be shown. If not empty, the first button must launch the game.",
"OriginalFieldType": "InlineKeyboardMarkup",
"ConvertedFieldType": "InlineKeyboardMarkup",
"Optional": true
Expand Down
Loading
Loading