Skip to content
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-9.0-blue?logo=telegram)](https://www.nuget.org/packages/Funogram.Telegram/)
[![NuGet](https://img.shields.io/badge/Bot%20API-9.1-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
1 change: 1 addition & 0 deletions src/Funogram.Generator/Helpers.fs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ let typeMap =
"Float number", "float"
"InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply", "Markup"
"array of Messages", "Message[]"
"array of Message", "Message[]"
"array of MessageId", "MessageId[]"
"InputMediaAudio, InputMediaDocument, InputMediaPhoto and InputMediaVideo", "InputMedia"
"Message or True", "EditMessageResult"
Expand Down
142 changes: 136 additions & 6 deletions src/Funogram.Generator/out/methods.json
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,7 @@
{
"OriginalName": "sendMediaGroup",
"ConvertedName": "SendMediaGroup",
"Description": "Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Messages that were sent is returned.",
"Description": "Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Message objects that were sent is returned.",
"Fields": [
{
"OriginalName": "business_connection_id",
Expand Down Expand Up @@ -1757,7 +1757,7 @@
"Optional": true
}
],
"OriginalReturnType": "array of Messages",
"OriginalReturnType": "array of Message",
"ConvertedReturnType": "Message[]"
},
{
Expand Down Expand Up @@ -2203,7 +2203,7 @@
{
"OriginalName": "options",
"ConvertedName": "Options",
"Description": "A JSON-serialized list of 2-10 answer options",
"Description": "A JSON-serialized list of 2-12 answer options",
"OriginalFieldType": "Array of InputPollOption",
"ConvertedFieldType": "InputPollOption[]",
"Optional": false
Expand Down Expand Up @@ -2340,6 +2340,79 @@
"OriginalReturnType": "Message",
"ConvertedReturnType": "Message"
},
{
"OriginalName": "sendChecklist",
"ConvertedName": "SendChecklist",
"Description": "Use this method to send a checklist on behalf of a connected business account. On success, the sent Message is returned.",
"Fields": [
{
"OriginalName": "business_connection_id",
"ConvertedName": "BusinessConnectionId",
"Description": "Unique identifier of the business connection on behalf of which the message will be sent",
"OriginalFieldType": "String",
"ConvertedFieldType": "string",
"Optional": false
},
{
"OriginalName": "chat_id",
"ConvertedName": "ChatId",
"Description": "Unique identifier for the target chat",
"OriginalFieldType": "Integer",
"ConvertedFieldType": "int64",
"Optional": false
},
{
"OriginalName": "checklist",
"ConvertedName": "Checklist",
"Description": "A JSON-serialized object for the checklist to send",
"OriginalFieldType": "InputChecklist",
"ConvertedFieldType": "InputChecklist",
"Optional": false
},
{
"OriginalName": "disable_notification",
"ConvertedName": "DisableNotification",
"Description": "Sends the message silently. Users will receive a notification with no sound.",
"OriginalFieldType": "Boolean",
"ConvertedFieldType": "bool",
"Optional": true
},
{
"OriginalName": "protect_content",
"ConvertedName": "ProtectContent",
"Description": "Protects the contents of the sent message from forwarding and saving",
"OriginalFieldType": "Boolean",
"ConvertedFieldType": "bool",
"Optional": true
},
{
"OriginalName": "message_effect_id",
"ConvertedName": "MessageEffectId",
"Description": "Unique identifier of the message effect to be added to the message",
"OriginalFieldType": "String",
"ConvertedFieldType": "string",
"Optional": true
},
{
"OriginalName": "reply_parameters",
"ConvertedName": "ReplyParameters",
"Description": "A JSON-serialized object for description of the message to reply to",
"OriginalFieldType": "ReplyParameters",
"ConvertedFieldType": "ReplyParameters",
"Optional": true
},
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "A JSON-serialized object for an inline keyboard",
"OriginalFieldType": "InlineKeyboardMarkup",
"ConvertedFieldType": "InlineKeyboardMarkup",
"Optional": true
}
],
"OriginalReturnType": "Message",
"ConvertedReturnType": "Message"
},
{
"OriginalName": "sendDice",
"ConvertedName": "SendDice",
Expand Down Expand Up @@ -2749,7 +2822,7 @@
{
"OriginalName": "can_manage_chat",
"ConvertedName": "CanManageChat",
"Description": "Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.",
"Description": "Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.",
"OriginalFieldType": "Boolean",
"ConvertedFieldType": "bool",
"Optional": true
Expand Down Expand Up @@ -2829,7 +2902,7 @@
{
"OriginalName": "can_post_messages",
"ConvertedName": "CanPostMessages",
"Description": "Pass True if the administrator can post messages in the channel, or access channel statistics; for channels only",
"Description": "Pass True if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only",
"OriginalFieldType": "Boolean",
"ConvertedFieldType": "bool",
"Optional": true
Expand Down Expand Up @@ -4617,6 +4690,55 @@
"OriginalReturnType": "Message or True",
"ConvertedReturnType": "EditMessageResult"
},
{
"OriginalName": "editMessageChecklist",
"ConvertedName": "EditMessageChecklist",
"Description": "Use this method to edit a checklist on behalf of a connected business account. On success, the edited Message is returned.",
"Fields": [
{
"OriginalName": "business_connection_id",
"ConvertedName": "BusinessConnectionId",
"Description": "Unique identifier of the business connection on behalf of which the message will be sent",
"OriginalFieldType": "String",
"ConvertedFieldType": "string",
"Optional": false
},
{
"OriginalName": "chat_id",
"ConvertedName": "ChatId",
"Description": "Unique identifier for the target chat",
"OriginalFieldType": "Integer",
"ConvertedFieldType": "int64",
"Optional": false
},
{
"OriginalName": "message_id",
"ConvertedName": "MessageId",
"Description": "Unique identifier for the target message",
"OriginalFieldType": "Integer",
"ConvertedFieldType": "int64",
"Optional": false
},
{
"OriginalName": "checklist",
"ConvertedName": "Checklist",
"Description": "A JSON-serialized object for the new checklist",
"OriginalFieldType": "InputChecklist",
"ConvertedFieldType": "InputChecklist",
"Optional": false
},
{
"OriginalName": "reply_markup",
"ConvertedName": "ReplyMarkup",
"Description": "A JSON-serialized object for the new inline keyboard for the message",
"OriginalFieldType": "InlineKeyboardMarkup",
"ConvertedFieldType": "InlineKeyboardMarkup",
"Optional": true
}
],
"OriginalReturnType": "Message",
"ConvertedReturnType": "Message"
},
{
"OriginalName": "editMessageReplyMarkup",
"ConvertedName": "EditMessageReplyMarkup",
Expand Down Expand Up @@ -5007,7 +5129,7 @@
{
"OriginalName": "deleteBusinessMessages",
"ConvertedName": "DeleteBusinessMessages",
"Description": "Delete messages on behalf of a business account. Requires the can_delete_outgoing_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success.",
"Description": "Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success.",
"Fields": [
{
"OriginalName": "business_connection_id",
Expand Down Expand Up @@ -6763,6 +6885,14 @@
"OriginalReturnType": "True",
"ConvertedReturnType": "bool"
},
{
"OriginalName": "getMyStarBalance",
"ConvertedName": "GetMyStarBalance",
"Description": "A method to get the current Telegram Stars balance of the bot. Requires no parameters. On success, returns a StarAmount object.",
"Fields": [],
"OriginalReturnType": "StarAmount",
"ConvertedReturnType": "StarAmount"
},
{
"OriginalName": "getStarTransactions",
"ConvertedName": "GetStarTransactions",
Expand Down
Loading