diff --git a/.azure-pipelines/variables.yml b/.azure-pipelines/variables.yml index 964f7c72a..78365dcec 100644 --- a/.azure-pipelines/variables.yml +++ b/.azure-pipelines/variables.yml @@ -1,7 +1,7 @@ variables: - group: Integration Tests Variables - name: versionPrefix - value: 22.1.2 + value: 22.1.3 - name: versionSuffix value: '' - name: ciVersionSuffix diff --git a/README.md b/README.md index 650e6ada3..09235f182 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# .NET Client for Telegram Bot API +# .NET Client for Telegram Bot API [![Nuget](https://img.shields.io/nuget/vpre/Telegram.Bot.svg?label=Telegram.Bot&style=flat-square&color=d8b541)](https://www.nuget.org/packages/Telegram.Bot) [![Bot API Version](https://img.shields.io/badge/Bot_API-8.0-f36caf.svg?style=flat-square)](https://core.telegram.org/bots/api) diff --git a/src/Telegram.Bot/Requests/Available methods/AnswerCallbackQueryRequest.cs b/src/Telegram.Bot/Requests/Available methods/AnswerCallbackQueryRequest.cs index 5aab66981..cfecaf00a 100644 --- a/src/Telegram.Bot/Requests/Available methods/AnswerCallbackQueryRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/AnswerCallbackQueryRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alertReturns: /// Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via @BotFather and accept the terms. Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter. diff --git a/src/Telegram.Bot/Requests/Available methods/Commands/DeleteMyCommandsRequest.cs b/src/Telegram.Bot/Requests/Available methods/Commands/DeleteMyCommandsRequest.cs index 310a200b8..c1f60a6d3 100644 --- a/src/Telegram.Bot/Requests/Available methods/Commands/DeleteMyCommandsRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Commands/DeleteMyCommandsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users.Returns: public partial class DeleteMyCommandsRequest() : RequestBase("deleteMyCommands") diff --git a/src/Telegram.Bot/Requests/Available methods/Commands/GetMyCommandsRequest.cs b/src/Telegram.Bot/Requests/Available methods/Commands/GetMyCommandsRequest.cs index 48ac2e84c..bf0682cec 100644 --- a/src/Telegram.Bot/Requests/Available methods/Commands/GetMyCommandsRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Commands/GetMyCommandsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get the current list of the bot's commands for the given scope and user language.Returns: An Array of objects. If commands aren't set, an empty list is returned. public partial class GetMyCommandsRequest() : RequestBase("getMyCommands") diff --git a/src/Telegram.Bot/Requests/Available methods/Commands/SetMyCommandsRequest.cs b/src/Telegram.Bot/Requests/Available methods/Commands/SetMyCommandsRequest.cs index a23dc31dc..837e83633 100644 --- a/src/Telegram.Bot/Requests/Available methods/Commands/SetMyCommandsRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Commands/SetMyCommandsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the list of the bot's commands. See this manual for more details about bot commands.Returns: public partial class SetMyCommandsRequest() : RequestBase("setMyCommands") diff --git a/src/Telegram.Bot/Requests/Available methods/CreateChatSubscriptionInviteLinkRequest.cs b/src/Telegram.Bot/Requests/Available methods/CreateChatSubscriptionInviteLinkRequest.cs index cec29533a..01faa67b1 100644 --- a/src/Telegram.Bot/Requests/Available methods/CreateChatSubscriptionInviteLinkRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/CreateChatSubscriptionInviteLinkRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to create a subscription invite link for a channel chat. The bot must have the CanInviteUsers administrator rights. The link can be edited using the method EditChatSubscriptionInviteLink or revoked using the method RevokeChatInviteLink.Returns: The new invite link as a object. public partial class CreateChatSubscriptionInviteLinkRequest() : RequestBase("createChatSubscriptionInviteLink"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Description/GetMyDescriptionRequest.cs b/src/Telegram.Bot/Requests/Available methods/Description/GetMyDescriptionRequest.cs index b77025f6b..acf3246e2 100644 --- a/src/Telegram.Bot/Requests/Available methods/Description/GetMyDescriptionRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Description/GetMyDescriptionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get the current bot description for the given user language.Returns: on success. public partial class GetMyDescriptionRequest() : RequestBase("getMyDescription") diff --git a/src/Telegram.Bot/Requests/Available methods/Description/SetMyDescriptionRequest.cs b/src/Telegram.Bot/Requests/Available methods/Description/SetMyDescriptionRequest.cs index dac3307fd..ed3b8c012 100644 --- a/src/Telegram.Bot/Requests/Available methods/Description/SetMyDescriptionRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Description/SetMyDescriptionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty.Returns: public partial class SetMyDescriptionRequest() : RequestBase("setMyDescription") diff --git a/src/Telegram.Bot/Requests/Available methods/EditChatSubscriptionInviteLinkRequest.cs b/src/Telegram.Bot/Requests/Available methods/EditChatSubscriptionInviteLinkRequest.cs index 09fb52642..52aff2b95 100644 --- a/src/Telegram.Bot/Requests/Available methods/EditChatSubscriptionInviteLinkRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/EditChatSubscriptionInviteLinkRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit a subscription invite link created by the bot. The bot must have the CanInviteUsers administrator rights.Returns: The edited invite link as a object. public partial class EditChatSubscriptionInviteLinkRequest() : RequestBase("editChatSubscriptionInviteLink"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Get Files/GetFileRequest.cs b/src/Telegram.Bot/Requests/Available methods/Get Files/GetFileRequest.cs index 2acbd2329..43d963d12 100644 --- a/src/Telegram.Bot/Requests/Available methods/Get Files/GetFileRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Get Files/GetFileRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get basic information about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size.Returns: A object is returned. The file can then be downloaded via DownloadFile, where <FilePath> is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling GetFile again.
Note: This function may not preserve the original file name and MIME type. You should save the file's MIME type and name (if available) when the File object is received.
public partial class GetFileRequest() : RequestBase("getFile") diff --git a/src/Telegram.Bot/Requests/Available methods/Get Files/GetUserProfilePhotosRequest.cs b/src/Telegram.Bot/Requests/Available methods/Get Files/GetUserProfilePhotosRequest.cs index d11891d33..6a726f1a5 100644 --- a/src/Telegram.Bot/Requests/Available methods/Get Files/GetUserProfilePhotosRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Get Files/GetUserProfilePhotosRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get a list of profile pictures for a user.Returns: A object. public partial class GetUserProfilePhotosRequest() : RequestBase("getUserProfilePhotos"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/GetBusinessConnectionRequest.cs b/src/Telegram.Bot/Requests/Available methods/GetBusinessConnectionRequest.cs index 239209ced..bfc8c070a 100644 --- a/src/Telegram.Bot/Requests/Available methods/GetBusinessConnectionRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/GetBusinessConnectionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get information about the connection of the bot with a business account.Returns: A object on success. public partial class GetBusinessConnectionRequest() : RequestBase("getBusinessConnection"), IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/GetChatMenuButtonRequest.cs b/src/Telegram.Bot/Requests/Available methods/GetChatMenuButtonRequest.cs index 10b94eea8..6bf029ef5 100644 --- a/src/Telegram.Bot/Requests/Available methods/GetChatMenuButtonRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/GetChatMenuButtonRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get the current value of the bot's menu button in a private chat, or the default menu button.Returns: on success. public partial class GetChatMenuButtonRequest() : RequestBase("getChatMenuButton") diff --git a/src/Telegram.Bot/Requests/Available methods/GetMeRequest.cs b/src/Telegram.Bot/Requests/Available methods/GetMeRequest.cs index 3d19960dd..51f35c3e2 100644 --- a/src/Telegram.Bot/Requests/Available methods/GetMeRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/GetMeRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// A simple method for testing your bot's authentication token.Returns: Basic information about the bot in form of a object. public partial class GetMeRequest() : ParameterlessRequest("getMe") diff --git a/src/Telegram.Bot/Requests/Available methods/GetMyDefaultAdministratorRightsRequest.cs b/src/Telegram.Bot/Requests/Available methods/GetMyDefaultAdministratorRightsRequest.cs index 1def3174b..993c4d701 100644 --- a/src/Telegram.Bot/Requests/Available methods/GetMyDefaultAdministratorRightsRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/GetMyDefaultAdministratorRightsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get the current default administrator rights of the bot.Returns: on success. public partial class GetMyDefaultAdministratorRightsRequest() : RequestBase("getMyDefaultAdministratorRights") diff --git a/src/Telegram.Bot/Requests/Available methods/GetMyNameRequest.cs b/src/Telegram.Bot/Requests/Available methods/GetMyNameRequest.cs index 9e2736909..7d92837ab 100644 --- a/src/Telegram.Bot/Requests/Available methods/GetMyNameRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/GetMyNameRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get the current bot name for the given user language.Returns: on success. public partial class GetMyNameRequest() : RequestBase("getMyName") diff --git a/src/Telegram.Bot/Requests/Available methods/GetUserChatBoostsRequest.cs b/src/Telegram.Bot/Requests/Available methods/GetUserChatBoostsRequest.cs index aea6a6441..6bb919f27 100644 --- a/src/Telegram.Bot/Requests/Available methods/GetUserChatBoostsRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/GetUserChatBoostsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in the chat.Returns: A object. public partial class GetUserChatBoostsRequest() : RequestBase("getUserChatBoosts"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Local Server/CloseRequest.cs b/src/Telegram.Bot/Requests/Available methods/Local Server/CloseRequest.cs index f27aa0ac7..8c4bae134 100644 --- a/src/Telegram.Bot/Requests/Available methods/Local Server/CloseRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Local Server/CloseRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched.Returns: public partial class CloseRequest() : ParameterlessRequest("close") diff --git a/src/Telegram.Bot/Requests/Available methods/Local Server/LogOutRequest.cs b/src/Telegram.Bot/Requests/Available methods/Local Server/LogOutRequest.cs index 65b812c78..d0485dc14 100644 --- a/src/Telegram.Bot/Requests/Available methods/Local Server/LogOutRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Local Server/LogOutRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes.Returns: public partial class LogOutRequest() : ParameterlessRequest("logOut") diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/BanChatMemberRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/BanChatMemberRequest.cs index e1a40bc40..869297b7a 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/BanChatMemberRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/BanChatMemberRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.Returns: public partial class BanChatMemberRequest() : RequestBase("banChatMember"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/BanChatSenderChatRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/BanChatSenderChatRequest.cs index 14f5a5d20..f2f961538 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/BanChatSenderChatRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/BanChatSenderChatRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights.Returns: public partial class BanChatSenderChatRequest() : RequestBase("banChatSenderChat"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/ApproveChatJoinRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/ApproveChatJoinRequest.cs index eb6596bfa..1ea3e4285 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/ApproveChatJoinRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/ApproveChatJoinRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the CanInviteUsers administrator right.Returns: public partial class ApproveChatJoinRequest() : RequestBase("approveChatJoinRequest"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/CreateChatInviteLinkRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/CreateChatInviteLinkRequest.cs index a1b75b2b0..d2ba33331 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/CreateChatInviteLinkRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/CreateChatInviteLinkRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method RevokeChatInviteLink.Returns: The new invite link as object. public partial class CreateChatInviteLinkRequest() : RequestBase("createChatInviteLink"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/DeclineChatJoinRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/DeclineChatJoinRequest.cs index e14d2e126..8ac740cea 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/DeclineChatJoinRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/DeclineChatJoinRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the CanInviteUsers administrator right.Returns: public partial class DeclineChatJoinRequest() : RequestBase("declineChatJoinRequest"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/EditChatInviteLinkRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/EditChatInviteLinkRequest.cs index c71f71345..f93e36976 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/EditChatInviteLinkRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/EditChatInviteLinkRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.Returns: The edited invite link as a object. public partial class EditChatInviteLinkRequest() : RequestBase("editChatInviteLink"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/ExportChatInviteLinkRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/ExportChatInviteLinkRequest.cs index 1021552cb..99c396a7a 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/ExportChatInviteLinkRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/ExportChatInviteLinkRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.Returns: The new invite link as String on success. /// Note: Each administrator in a chat generates their own invite links. Bots can't use invite links generated by other administrators. If you want your bot to work with invite links, it will need to generate its own link using ExportChatInviteLink or by calling the GetChat method. If your bot needs to generate a new primary invite link replacing its previous one, use ExportChatInviteLink again. diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/RevokeChatInviteLinkRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/RevokeChatInviteLinkRequest.cs index 0d65bd3ab..c4823a50a 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/RevokeChatInviteLinkRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Chat Invite Link/RevokeChatInviteLinkRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.Returns: The revoked invite link as object. public partial class RevokeChatInviteLinkRequest() : RequestBase("revokeChatInviteLink"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/CloseForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/CloseForumTopicRequest.cs index 9f5c23641..ceccc593e 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/CloseForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/CloseForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights, unless it is the creator of the topic.Returns: public partial class CloseForumTopicRequest() : RequestBase("closeForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/CloseGeneralForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/CloseGeneralForumTopicRequest.cs index b1fc1a017..a497b25cd 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/CloseGeneralForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/CloseGeneralForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights.Returns: public partial class CloseGeneralForumTopicRequest() : RequestBase("closeGeneralForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/CreateForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/CreateForumTopicRequest.cs index 6208e1e6d..3c5c4c5d8 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/CreateForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/CreateForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights.Returns: Information about the created topic as a object. public partial class CreateForumTopicRequest() : RequestBase("createForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteChatPhotoRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteChatPhotoRequest.cs index 9a3a44cbf..32d6c0f7b 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteChatPhotoRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteChatPhotoRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.Returns: public partial class DeleteChatPhotoRequest() : RequestBase("deleteChatPhoto"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteChatStickerSetRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteChatStickerSetRequest.cs index 3f0686ddc..bae4015ee 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteChatStickerSetRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteChatStickerSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field CanSetStickerSet optionally returned in GetChat requests to check if the bot can use this method.Returns: public partial class DeleteChatStickerSetRequest() : RequestBase("deleteChatStickerSet"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteForumTopicRequest.cs index 0d3aacfcc..e1bdc2d11 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/DeleteForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanDeleteMessages administrator rights.Returns: public partial class DeleteForumTopicRequest() : RequestBase("deleteForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/EditForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/EditForumTopicRequest.cs index f88eeb5d3..4cec674c5 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/EditForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/EditForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights, unless it is the creator of the topic.Returns: public partial class EditForumTopicRequest() : RequestBase("editForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/EditGeneralForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/EditGeneralForumTopicRequest.cs index 35bb1f184..bc413dc6d 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/EditGeneralForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/EditGeneralForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights.Returns: public partial class EditGeneralForumTopicRequest() : RequestBase("editGeneralForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatAdministratorsRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatAdministratorsRequest.cs index 56c98435d..04e6cec4d 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatAdministratorsRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatAdministratorsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get a list of administrators in a chat, which aren't bots.Returns: An Array of objects. public partial class GetChatAdministratorsRequest() : RequestBase("getChatAdministrators"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatMemberCountRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatMemberCountRequest.cs index cc1b6a2d6..32f32c9f6 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatMemberCountRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatMemberCountRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get the number of members in a chat.Returns: Int on success. public partial class GetChatMemberCountRequest() : RequestBase("getChatMemberCount"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatMemberRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatMemberRequest.cs index 95f0aca11..abfb60605 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatMemberRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatMemberRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat.Returns: A object on success. public partial class GetChatMemberRequest() : RequestBase("getChatMember"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatRequest.cs index 0e8bc9886..c498d2ca7 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/Get Chat/GetChatRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get up-to-date information about the chat.Returns: A object on success. public partial class GetChatRequest() : RequestBase("getChat"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/HideGeneralForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/HideGeneralForumTopicRequest.cs index b51d55014..70d9812f9 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/HideGeneralForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/HideGeneralForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights. The topic will be automatically closed if it was open.Returns: public partial class HideGeneralForumTopicRequest() : RequestBase("hideGeneralForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/LeaveChatRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/LeaveChatRequest.cs index 5e5ae8fe5..9244f4241 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/LeaveChatRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/LeaveChatRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method for your bot to leave a group, supergroup or channel.Returns: public partial class LeaveChatRequest() : RequestBase("leaveChat"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/PinChatMessageRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/PinChatMessageRequest.cs index ac6126057..4a461eddf 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/PinChatMessageRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/PinChatMessageRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'CanPinMessages' administrator right in a supergroup or 'CanEditMessages' administrator right in a channel.Returns: public partial class PinChatMessageRequest() : RequestBase("pinChatMessage"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/PromoteChatMemberRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/PromoteChatMemberRequest.cs index 49788e65b..19fadd4fb 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/PromoteChatMemberRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/PromoteChatMemberRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user.Returns: public partial class PromoteChatMemberRequest() : RequestBase("promoteChatMember"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/ReopenForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/ReopenForumTopicRequest.cs index c7ca9d97e..c1027f7bc 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/ReopenForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/ReopenForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights, unless it is the creator of the topic.Returns: public partial class ReopenForumTopicRequest() : RequestBase("reopenForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/ReopenGeneralForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/ReopenGeneralForumTopicRequest.cs index 370536ca1..3ceee6e65 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/ReopenGeneralForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/ReopenGeneralForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights. The topic will be automatically unhidden if it was hidden.Returns: public partial class ReopenGeneralForumTopicRequest() : RequestBase("reopenGeneralForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/RestrictChatMemberRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/RestrictChatMemberRequest.cs index 47e48702e..d7b969ce2 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/RestrictChatMemberRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/RestrictChatMemberRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass True for all permissions to lift restrictions from a user.Returns: public partial class RestrictChatMemberRequest() : RequestBase("restrictChatMember"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatAdministratorCustomTitleRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatAdministratorCustomTitleRequest.cs index 936e125d8..1b80c7081 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatAdministratorCustomTitleRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatAdministratorCustomTitleRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set a custom title for an administrator in a supergroup promoted by the bot.Returns: public partial class SetChatAdministratorCustomTitleRequest() : RequestBase("setChatAdministratorCustomTitle"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatDescriptionRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatDescriptionRequest.cs index 504d517b3..e913f5ae6 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatDescriptionRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatDescriptionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.Returns: public partial class SetChatDescriptionRequest() : RequestBase("setChatDescription"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatPermissionsRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatPermissionsRequest.cs index e97751820..0a9cb35ff 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatPermissionsRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatPermissionsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the CanRestrictMembers administrator rights.Returns: public partial class SetChatPermissionsRequest() : RequestBase("setChatPermissions"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatPhotoRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatPhotoRequest.cs index 6ec2c777a..287b22f64 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatPhotoRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatPhotoRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.Returns: public partial class SetChatPhotoRequest() : FileRequestBase("setChatPhoto"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatStickerSetRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatStickerSetRequest.cs index 0e578d680..928e23b12 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatStickerSetRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatStickerSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field CanSetStickerSet optionally returned in GetChat requests to check if the bot can use this method.Returns: public partial class SetChatStickerSetRequest() : RequestBase("setChatStickerSet"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatTitleRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatTitleRequest.cs index 18568c369..e192532fe 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatTitleRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/SetChatTitleRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.Returns: public partial class SetChatTitleRequest() : RequestBase("setChatTitle"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnbanChatMemberRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnbanChatMemberRequest.cs index f5e902a39..b9e82db76 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnbanChatMemberRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnbanChatMemberRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter OnlyIfBanned.Returns: public partial class UnbanChatMemberRequest() : RequestBase("unbanChatMember"), IChatTargetable, IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnbanChatSenderChatRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnbanChatSenderChatRequest.cs index f2867dd04..a97a81829 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnbanChatSenderChatRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnbanChatSenderChatRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights.Returns: public partial class UnbanChatSenderChatRequest() : RequestBase("unbanChatSenderChat"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnhideGeneralForumTopicRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnhideGeneralForumTopicRequest.cs index a8ab1dd56..24b7920b3 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnhideGeneralForumTopicRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnhideGeneralForumTopicRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the CanManageTopics administrator rights.Returns: public partial class UnhideGeneralForumTopicRequest() : RequestBase("unhideGeneralForumTopic"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllChatMessagesRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllChatMessagesRequest.cs index 8c4293f92..0301c881f 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllChatMessagesRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllChatMessagesRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'CanPinMessages' administrator right in a supergroup or 'CanEditMessages' administrator right in a channel.Returns: public partial class UnpinAllChatMessagesRequest() : RequestBase("unpinAllChatMessages"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllForumTopicMessagesRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllForumTopicMessagesRequest.cs index af452a6c8..ee48f8767 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllForumTopicMessagesRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllForumTopicMessagesRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to clear the list of pinned messages in a forum topic. The bot must be an administrator in the chat for this to work and must have the CanPinMessages administrator right in the supergroup.Returns: public partial class UnpinAllForumTopicMessagesRequest() : RequestBase("unpinAllForumTopicMessages"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllGeneralForumTopicMessagesRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllGeneralForumTopicMessagesRequest.cs index 5a4d0497b..539c09c09 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllGeneralForumTopicMessagesRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinAllGeneralForumTopicMessagesRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the CanPinMessages administrator right in the supergroup.Returns: public partial class UnpinAllGeneralForumTopicMessagesRequest() : RequestBase("unpinAllGeneralForumTopicMessages"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinChatMessageRequest.cs b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinChatMessageRequest.cs index 25b84200b..ec69cbdd6 100644 --- a/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinChatMessageRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Manage Chat/UnpinChatMessageRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'CanPinMessages' administrator right in a supergroup or 'CanEditMessages' administrator right in a channel.Returns: public partial class UnpinChatMessageRequest() : RequestBase("unpinChatMessage"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/CopyMessageRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/CopyMessageRequest.cs index faab32485..de2bb86c3 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/CopyMessageRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/CopyMessageRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to copy messages of any kind. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz can be copied only if the value of the field CorrectOptionId is known to the bot. The method is analogous to the method ForwardMessage, but the copied message doesn't have a link to the original message.Returns: The of the sent message on success. public partial class CopyMessageRequest() : RequestBase("copyMessage"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/CopyMessagesRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/CopyMessagesRequest.cs index 59280766f..b434daf87 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/CopyMessagesRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/CopyMessagesRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to copy messages of any kind. If some of the specified messages can't be found or copied, they are skipped. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz can be copied only if the value of the field CorrectOptionId is known to the bot. The method is analogous to the method ForwardMessages, but the copied messages don't have a link to the original message. Album grouping is kept for copied messages.Returns: An array of of the sent messages is returned. public partial class CopyMessagesRequest() : RequestBase("copyMessages"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/ForwardMessageRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/ForwardMessageRequest.cs index 5c1877285..4f2568d93 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/ForwardMessageRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/ForwardMessageRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to forward messages of any kind. Service messages and messages with protected content can't be forwarded.Returns: The sent is returned. public partial class ForwardMessageRequest() : RequestBase("forwardMessage"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/ForwardMessagesRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/ForwardMessagesRequest.cs index 5865cf4fe..8f1584f56 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/ForwardMessagesRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/ForwardMessagesRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to forward multiple messages of any kind. If some of the specified messages can't be found or forwarded, they are skipped. Service messages and messages with protected content can't be forwarded. Album grouping is kept for forwarded messages.Returns: An array of of the sent messages is returned. public partial class ForwardMessagesRequest() : RequestBase("forwardMessages"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/Location/EditInlineMessageLiveLocationRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/Location/EditInlineMessageLiveLocationRequest.cs index cb7ffbecd..5f9be5180 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/Location/EditInlineMessageLiveLocationRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/Location/EditInlineMessageLiveLocationRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit live location messages. A location can be edited until its LivePeriod expires or editing is explicitly disabled by a call to StopMessageLiveLocation.Returns: public partial class EditInlineMessageLiveLocationRequest() : RequestBase("editMessageLiveLocation"), IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/Location/EditMessageLiveLocationRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/Location/EditMessageLiveLocationRequest.cs index 269de8602..18cc480eb 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/Location/EditMessageLiveLocationRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/Location/EditMessageLiveLocationRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit live location messages. A location can be edited until its LivePeriod expires or editing is explicitly disabled by a call to StopMessageLiveLocation.Returns: The edited is returned public partial class EditMessageLiveLocationRequest() : RequestBase("editMessageLiveLocation"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/Location/SendLocationRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/Location/SendLocationRequest.cs index b42882a9a..9a9b06e1a 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/Location/SendLocationRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/Location/SendLocationRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send point on the map.Returns: The sent is returned. public partial class SendLocationRequest() : RequestBase("sendLocation"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/Location/SendVenueRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/Location/SendVenueRequest.cs index fe49ba823..501b21c3b 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/Location/SendVenueRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/Location/SendVenueRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send information about a venue.Returns: The sent is returned. public partial class SendVenueRequest() : RequestBase("sendVenue"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/Location/StopInlineMessageLiveLocationRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/Location/StopInlineMessageLiveLocationRequest.cs index f6cfe2717..66302e13c 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/Location/StopInlineMessageLiveLocationRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/Location/StopInlineMessageLiveLocationRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to stop updating a live location message before LivePeriod expires.Returns: public partial class StopInlineMessageLiveLocationRequest() : RequestBase("stopMessageLiveLocation"), IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/Location/StopMessageLiveLocationRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/Location/StopMessageLiveLocationRequest.cs index ae9a291b8..ae7981298 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/Location/StopMessageLiveLocationRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/Location/StopMessageLiveLocationRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to stop updating a live location message before LivePeriod expires.Returns: The edited is returned public partial class StopMessageLiveLocationRequest() : RequestBase("stopMessageLiveLocation"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendAnimationRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendAnimationRequest.cs index a98681a63..fdbaf314e 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendAnimationRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendAnimationRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).Returns: The sent is returned. /// Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future. diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendAudioRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendAudioRequest.cs index 4cdb3e0e7..a4f7ceaa7 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendAudioRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendAudioRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format.Returns: The sent is returned. /// Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.
For sending voice messages, use the SendVoice method instead.
diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendChatActionRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendChatActionRequest.cs index 2d8432f55..0f6a0468a 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendChatActionRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendChatActionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).
We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.Returns:
/// Example: The ImageBot needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use SendChatAction with Action = UploadPhoto. The user will see a “sending photo” status for the bot. diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendContactRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendContactRequest.cs index 9573b407e..88b0ffa74 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendContactRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendContactRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send phone contacts.Returns: The sent is returned. public partial class SendContactRequest() : RequestBase("sendContact"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendDiceRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendDiceRequest.cs index eb9582276..2399e75b3 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendDiceRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendDiceRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send an animated emoji that will display a random value.Returns: The sent is returned. public partial class SendDiceRequest() : RequestBase("sendDice"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendDocumentRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendDocumentRequest.cs index a894a8d67..a1c27d611 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendDocumentRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendDocumentRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send general files.Returns: The sent is returned. /// Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendMediaGroupRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendMediaGroupRequest.cs index 51d13ef5c..7e3ca20a7 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendMediaGroupRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendMediaGroupRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// 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.Returns: An array of Messages that were sent is returned. public partial class SendMediaGroupRequest() : FileRequestBase("sendMediaGroup"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendMessageRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendMessageRequest.cs index e64e36b0d..3591df45b 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendMessageRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendMessageRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send text messages.Returns: The sent is returned. public partial class SendMessageRequest() : RequestBase("sendMessage"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendPhotoRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendPhotoRequest.cs index 282093faf..3f8ee467b 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendPhotoRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendPhotoRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send photos.Returns: The sent is returned. public partial class SendPhotoRequest() : FileRequestBase("sendPhoto"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendPollRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendPollRequest.cs index 082d6f390..8b893ebeb 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendPollRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendPollRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send a native poll.Returns: The sent is returned. public partial class SendPollRequest() : RequestBase("sendPoll"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendVideoNoteRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendVideoNoteRequest.cs index 5bb822f63..0f904bf1e 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendVideoNoteRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendVideoNoteRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// As of v.4.0, Telegram clients support rounded square MPEG4 videos of up to 1 minute long. Use this method to send video messages.Returns: The sent is returned. public partial class SendVideoNoteRequest() : FileRequestBase("sendVideoNote"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendVideoRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendVideoRequest.cs index cb03c8c76..448eaa9af 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendVideoRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendVideoRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as ).Returns: The sent is returned. /// Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SendVoiceRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SendVoiceRequest.cs index 29ef92e28..55d4364d8 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SendVoiceRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SendVoiceRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// 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 or ).Returns: The sent is returned. /// Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future. diff --git a/src/Telegram.Bot/Requests/Available methods/Messages/SetMessageReactionRequest.cs b/src/Telegram.Bot/Requests/Available methods/Messages/SetMessageReactionRequest.cs index 3bf4577b8..d4bb641bd 100644 --- a/src/Telegram.Bot/Requests/Available methods/Messages/SetMessageReactionRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Messages/SetMessageReactionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions.Returns: public partial class SetMessageReactionRequest() : RequestBase("setMessageReaction"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/SendPaidMediaRequest.cs b/src/Telegram.Bot/Requests/Available methods/SendPaidMediaRequest.cs index 558107765..67cc07837 100644 --- a/src/Telegram.Bot/Requests/Available methods/SendPaidMediaRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/SendPaidMediaRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send paid media.Returns: The sent is returned. public partial class SendPaidMediaRequest() : FileRequestBase("sendPaidMedia"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Available methods/SetChatMenuButtonRequest.cs b/src/Telegram.Bot/Requests/Available methods/SetChatMenuButtonRequest.cs index e32d7e343..d109e92b5 100644 --- a/src/Telegram.Bot/Requests/Available methods/SetChatMenuButtonRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/SetChatMenuButtonRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the bot's menu button in a private chat, or the default menu button.Returns: public partial class SetChatMenuButtonRequest() : RequestBase("setChatMenuButton") diff --git a/src/Telegram.Bot/Requests/Available methods/SetMyDefaultAdministratorRightsRequest.cs b/src/Telegram.Bot/Requests/Available methods/SetMyDefaultAdministratorRightsRequest.cs index ac3252b0a..572ce4114 100644 --- a/src/Telegram.Bot/Requests/Available methods/SetMyDefaultAdministratorRightsRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/SetMyDefaultAdministratorRightsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot.Returns: public partial class SetMyDefaultAdministratorRightsRequest() : RequestBase("setMyDefaultAdministratorRights") diff --git a/src/Telegram.Bot/Requests/Available methods/SetMyNameRequest.cs b/src/Telegram.Bot/Requests/Available methods/SetMyNameRequest.cs index 744bf2705..077507102 100644 --- a/src/Telegram.Bot/Requests/Available methods/SetMyNameRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/SetMyNameRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the bot's name.Returns: public partial class SetMyNameRequest() : RequestBase("setMyName") diff --git a/src/Telegram.Bot/Requests/Available methods/SetUserEmojiStatusRequest.cs b/src/Telegram.Bot/Requests/Available methods/SetUserEmojiStatusRequest.cs index ff77dcaee..6bb73f2f9 100644 --- a/src/Telegram.Bot/Requests/Available methods/SetUserEmojiStatusRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/SetUserEmojiStatusRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess.Returns: public partial class SetUserEmojiStatusRequest() : RequestBase("setUserEmojiStatus"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Available methods/Short Description/GetMyShortDescriptionRequest.cs b/src/Telegram.Bot/Requests/Available methods/Short Description/GetMyShortDescriptionRequest.cs index 5a664df45..c741cc54e 100644 --- a/src/Telegram.Bot/Requests/Available methods/Short Description/GetMyShortDescriptionRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Short Description/GetMyShortDescriptionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get the current bot short description for the given user language.Returns: on success. public partial class GetMyShortDescriptionRequest() : RequestBase("getMyShortDescription") diff --git a/src/Telegram.Bot/Requests/Available methods/Short Description/SetMyShortDescriptionRequest.cs b/src/Telegram.Bot/Requests/Available methods/Short Description/SetMyShortDescriptionRequest.cs index 77c02ec71..528b6ebc9 100644 --- a/src/Telegram.Bot/Requests/Available methods/Short Description/SetMyShortDescriptionRequest.cs +++ b/src/Telegram.Bot/Requests/Available methods/Short Description/SetMyShortDescriptionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot.Returns: public partial class SetMyShortDescriptionRequest() : RequestBase("setMyShortDescription") diff --git a/src/Telegram.Bot/Requests/Games/GetGameHighScoresRequest.cs b/src/Telegram.Bot/Requests/Games/GetGameHighScoresRequest.cs index 9653a7f74..135fbea93 100644 --- a/src/Telegram.Bot/Requests/Games/GetGameHighScoresRequest.cs +++ b/src/Telegram.Bot/Requests/Games/GetGameHighScoresRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game.Returns: An Array of objects. /// This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change. diff --git a/src/Telegram.Bot/Requests/Games/GetInlineGameHighScoresRequest.cs b/src/Telegram.Bot/Requests/Games/GetInlineGameHighScoresRequest.cs index 04a7356ea..22187b1b3 100644 --- a/src/Telegram.Bot/Requests/Games/GetInlineGameHighScoresRequest.cs +++ b/src/Telegram.Bot/Requests/Games/GetInlineGameHighScoresRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game.Returns: An Array of objects. /// This method will currently return scores for the target user, plus two of their closest neighbors on each side. Will also return the top three users if the user and their neighbors are not among them. Please note that this behavior is subject to change. diff --git a/src/Telegram.Bot/Requests/Games/SendGameRequest.cs b/src/Telegram.Bot/Requests/Games/SendGameRequest.cs index b4b19461c..2890dd244 100644 --- a/src/Telegram.Bot/Requests/Games/SendGameRequest.cs +++ b/src/Telegram.Bot/Requests/Games/SendGameRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send a game.Returns: The sent is returned. public partial class SendGameRequest() : RequestBase("sendGame"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Games/SetGameScoreRequest.cs b/src/Telegram.Bot/Requests/Games/SetGameScoreRequest.cs index 3e66e14f1..c4df5b6ea 100644 --- a/src/Telegram.Bot/Requests/Games/SetGameScoreRequest.cs +++ b/src/Telegram.Bot/Requests/Games/SetGameScoreRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set the score of the specified user in a game message.Returns: The is returned /// Returns an error, if the new score is not greater than the user's current score in the chat and Force is False. diff --git a/src/Telegram.Bot/Requests/Games/SetInlineGameScoreRequest.cs b/src/Telegram.Bot/Requests/Games/SetInlineGameScoreRequest.cs index 857c36f0a..12d149e2e 100644 --- a/src/Telegram.Bot/Requests/Games/SetInlineGameScoreRequest.cs +++ b/src/Telegram.Bot/Requests/Games/SetInlineGameScoreRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set the score of the specified user in a game message.Returns: /// Returns an error, if the new score is not greater than the user's current score in the chat and Force is False. diff --git a/src/Telegram.Bot/Requests/Getting Updates/DeleteWebhookRequest.cs b/src/Telegram.Bot/Requests/Getting Updates/DeleteWebhookRequest.cs index 9b4d7a1b2..a7bc8b924 100644 --- a/src/Telegram.Bot/Requests/Getting Updates/DeleteWebhookRequest.cs +++ b/src/Telegram.Bot/Requests/Getting Updates/DeleteWebhookRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to remove webhook integration if you decide to switch back to GetUpdates.Returns: public partial class DeleteWebhookRequest() : RequestBase("deleteWebhook") diff --git a/src/Telegram.Bot/Requests/Getting Updates/GetUpdatesRequest.cs b/src/Telegram.Bot/Requests/Getting Updates/GetUpdatesRequest.cs index 7431f1f7d..ba3c5ca46 100644 --- a/src/Telegram.Bot/Requests/Getting Updates/GetUpdatesRequest.cs +++ b/src/Telegram.Bot/Requests/Getting Updates/GetUpdatesRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to receive incoming updates using long polling (wiki).Returns: An Array of objects. /// Notes
1. This method will not work if an outgoing webhook is set up.
2. In order to avoid getting duplicate updates, recalculate Offset after each server response.
diff --git a/src/Telegram.Bot/Requests/Getting Updates/GetWebhookInfoRequest.cs b/src/Telegram.Bot/Requests/Getting Updates/GetWebhookInfoRequest.cs index e533763ac..378f392eb 100644 --- a/src/Telegram.Bot/Requests/Getting Updates/GetWebhookInfoRequest.cs +++ b/src/Telegram.Bot/Requests/Getting Updates/GetWebhookInfoRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get current webhook status.Returns: A object. If the bot is using GetUpdates, will return an object with the url field empty. public partial class GetWebhookInfoRequest() : ParameterlessRequest("getWebhookInfo") diff --git a/src/Telegram.Bot/Requests/Getting Updates/SetWebhookRequest.cs b/src/Telegram.Bot/Requests/Getting Updates/SetWebhookRequest.cs index 8f0b16feb..5cb12bcd1 100644 --- a/src/Telegram.Bot/Requests/Getting Updates/SetWebhookRequest.cs +++ b/src/Telegram.Bot/Requests/Getting Updates/SetWebhookRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized . In case of an unsuccessful request, we will give up after a reasonable amount of attempts.
If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter SecretToken. If specified, the request will contain a header “X-Telegram-Bot-Api-Secret-Token” with the secret token as content.Returns:
///

Notes
1. You will not be able to receive updates using GetUpdates for as long as an outgoing webhook is set up.
2. To use a self-signed certificate, you need to upload your public key certificate using Certificate parameter. Please upload as InputFile, sending a String will not work.
3. Ports currently supported for webhooks: 443, 80, 88, 8443.

If you're having any trouble setting up webhooks, please check out this amazing guide to webhooks.

diff --git a/src/Telegram.Bot/Requests/Inline Mode/AnswerInlineQueryRequest.cs b/src/Telegram.Bot/Requests/Inline Mode/AnswerInlineQueryRequest.cs index 3e5be7659..8ebc6a144 100644 --- a/src/Telegram.Bot/Requests/Inline Mode/AnswerInlineQueryRequest.cs +++ b/src/Telegram.Bot/Requests/Inline Mode/AnswerInlineQueryRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send answers to an inline query
No more than 50 results per query are allowed.Returns:
public partial class AnswerInlineQueryRequest() : RequestBase("answerInlineQuery") diff --git a/src/Telegram.Bot/Requests/Inline Mode/AnswerWebAppQueryRequest.cs b/src/Telegram.Bot/Requests/Inline Mode/AnswerWebAppQueryRequest.cs index f635f22c0..7b3240323 100644 --- a/src/Telegram.Bot/Requests/Inline Mode/AnswerWebAppQueryRequest.cs +++ b/src/Telegram.Bot/Requests/Inline Mode/AnswerWebAppQueryRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated.Returns: A object is returned. public partial class AnswerWebAppQueryRequest() : RequestBase("answerWebAppQuery") diff --git a/src/Telegram.Bot/Requests/Payments/AnswerPreCheckoutQueryRequest.cs b/src/Telegram.Bot/Requests/Payments/AnswerPreCheckoutQueryRequest.cs index c171b3063..30a8b9454 100644 --- a/src/Telegram.Bot/Requests/Payments/AnswerPreCheckoutQueryRequest.cs +++ b/src/Telegram.Bot/Requests/Payments/AnswerPreCheckoutQueryRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an with the field PreCheckoutQuery. Use this method to respond to such pre-checkout queries Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.Returns: public partial class AnswerPreCheckoutQueryRequest() : RequestBase("answerPreCheckoutQuery") diff --git a/src/Telegram.Bot/Requests/Payments/AnswerShippingQueryRequest.cs b/src/Telegram.Bot/Requests/Payments/AnswerShippingQueryRequest.cs index 84ab13088..714dd704c 100644 --- a/src/Telegram.Bot/Requests/Payments/AnswerShippingQueryRequest.cs +++ b/src/Telegram.Bot/Requests/Payments/AnswerShippingQueryRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// If you sent an invoice requesting a shipping address and the parameter IsFlexible was specified, the Bot API will send an with a ShippingQuery field to the bot. Use this method to reply to shipping queriesReturns: public partial class AnswerShippingQueryRequest() : RequestBase("answerShippingQuery") diff --git a/src/Telegram.Bot/Requests/Payments/CreateInvoiceLinkRequest.cs b/src/Telegram.Bot/Requests/Payments/CreateInvoiceLinkRequest.cs index 6b7317053..e3ff052f4 100644 --- a/src/Telegram.Bot/Requests/Payments/CreateInvoiceLinkRequest.cs +++ b/src/Telegram.Bot/Requests/Payments/CreateInvoiceLinkRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to create a link for an invoice.Returns: The created invoice link as String on success. public partial class CreateInvoiceLinkRequest() : RequestBase("createInvoiceLink"), IBusinessConnectable @@ -26,9 +26,6 @@ public partial class CreateInvoiceLinkRequest() : RequestBase("createInv /// Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars. public string? ProviderToken { get; set; } - /// The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. - public int? SubscriptionPeriod { get; set; } - /// The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass MaxTipAmount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in Telegram Stars. public int? MaxTipAmount { get; set; } @@ -71,6 +68,9 @@ public partial class CreateInvoiceLinkRequest() : RequestBase("createInv /// Pass if the final price depends on the shipping method. Ignored for payments in Telegram Stars. public bool IsFlexible { get; set; } - /// Unique identifier of the business connection on behalf of which the link will be created + /// The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. Any number of subscriptions can be active for a given bot at the same time, including multiple concurrent subscriptions from the same user. + public int? SubscriptionPeriod { get; set; } + + /// Unique identifier of the business connection on behalf of which the link will be created. For payments in Telegram Stars only. public string? BusinessConnectionId { get; set; } } diff --git a/src/Telegram.Bot/Requests/Payments/EditUserStarSubscriptionRequest.cs b/src/Telegram.Bot/Requests/Payments/EditUserStarSubscriptionRequest.cs index 9b7c4117d..22f9b93f7 100644 --- a/src/Telegram.Bot/Requests/Payments/EditUserStarSubscriptionRequest.cs +++ b/src/Telegram.Bot/Requests/Payments/EditUserStarSubscriptionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars.Returns: public partial class EditUserStarSubscriptionRequest() : RequestBase("editUserStarSubscription"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Payments/GetStarTransactionsRequest.cs b/src/Telegram.Bot/Requests/Payments/GetStarTransactionsRequest.cs index 55cb7221e..07ebd2d39 100644 --- a/src/Telegram.Bot/Requests/Payments/GetStarTransactionsRequest.cs +++ b/src/Telegram.Bot/Requests/Payments/GetStarTransactionsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Returns the bot's Telegram Star transactions in chronological order.Returns: A object. public partial class GetStarTransactionsRequest() : RequestBase("getStarTransactions") diff --git a/src/Telegram.Bot/Requests/Payments/RefundStarPaymentRequest.cs b/src/Telegram.Bot/Requests/Payments/RefundStarPaymentRequest.cs index 7b4c118c4..1618e94db 100644 --- a/src/Telegram.Bot/Requests/Payments/RefundStarPaymentRequest.cs +++ b/src/Telegram.Bot/Requests/Payments/RefundStarPaymentRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Refunds a successful payment in Telegram Stars.Returns: public partial class RefundStarPaymentRequest() : RequestBase("refundStarPayment"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Payments/SendInvoiceRequest.cs b/src/Telegram.Bot/Requests/Payments/SendInvoiceRequest.cs index 4e588a3f8..8a0663378 100644 --- a/src/Telegram.Bot/Requests/Payments/SendInvoiceRequest.cs +++ b/src/Telegram.Bot/Requests/Payments/SendInvoiceRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send invoices.Returns: The sent is returned. public partial class SendInvoiceRequest() : RequestBase("sendInvoice"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Stickers/AddStickerToSetRequest.cs b/src/Telegram.Bot/Requests/Stickers/AddStickerToSetRequest.cs index be72ecb2b..b342046b5 100644 --- a/src/Telegram.Bot/Requests/Stickers/AddStickerToSetRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/AddStickerToSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers.Returns: public partial class AddStickerToSetRequest() : FileRequestBase("addStickerToSet"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Stickers/CreateNewStickerSetRequest.cs b/src/Telegram.Bot/Requests/Stickers/CreateNewStickerSetRequest.cs index 3f63e2a95..fdc17c35c 100644 --- a/src/Telegram.Bot/Requests/Stickers/CreateNewStickerSetRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/CreateNewStickerSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created.Returns: public partial class CreateNewStickerSetRequest() : FileRequestBase("createNewStickerSet"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Stickers/DeleteStickerFromSetRequest.cs b/src/Telegram.Bot/Requests/Stickers/DeleteStickerFromSetRequest.cs index 39cabaac9..1d25179ec 100644 --- a/src/Telegram.Bot/Requests/Stickers/DeleteStickerFromSetRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/DeleteStickerFromSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to delete a sticker from a set created by the bot.Returns: public partial class DeleteStickerFromSetRequest() : RequestBase("deleteStickerFromSet") diff --git a/src/Telegram.Bot/Requests/Stickers/DeleteStickerSetRequest.cs b/src/Telegram.Bot/Requests/Stickers/DeleteStickerSetRequest.cs index c65a9081e..25fdf8304 100644 --- a/src/Telegram.Bot/Requests/Stickers/DeleteStickerSetRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/DeleteStickerSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to delete a sticker set that was created by the bot.Returns: public partial class DeleteStickerSetRequest() : RequestBase("deleteStickerSet") diff --git a/src/Telegram.Bot/Requests/Stickers/GetAvailableGiftsRequest.cs b/src/Telegram.Bot/Requests/Stickers/GetAvailableGiftsRequest.cs index 1d9627ac8..ebec166ef 100644 --- a/src/Telegram.Bot/Requests/Stickers/GetAvailableGiftsRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/GetAvailableGiftsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Returns the list of gifts that can be sent by the bot to users.Returns: A object. public partial class GetAvailableGiftsRequest() : ParameterlessRequest("getAvailableGifts") diff --git a/src/Telegram.Bot/Requests/Stickers/GetCustomEmojiStickersRequest.cs b/src/Telegram.Bot/Requests/Stickers/GetCustomEmojiStickersRequest.cs index 78abece73..9571127bd 100644 --- a/src/Telegram.Bot/Requests/Stickers/GetCustomEmojiStickersRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/GetCustomEmojiStickersRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get information about custom emoji stickers by their identifiers.Returns: An Array of objects. public partial class GetCustomEmojiStickersRequest() : RequestBase("getCustomEmojiStickers") diff --git a/src/Telegram.Bot/Requests/Stickers/GetForumTopicIconStickersRequest.cs b/src/Telegram.Bot/Requests/Stickers/GetForumTopicIconStickersRequest.cs index 88ca31aea..42323ba69 100644 --- a/src/Telegram.Bot/Requests/Stickers/GetForumTopicIconStickersRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/GetForumTopicIconStickersRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user.Returns: An Array of objects. public partial class GetForumTopicIconStickersRequest() : ParameterlessRequest("getForumTopicIconStickers") diff --git a/src/Telegram.Bot/Requests/Stickers/GetStickerSetRequest.cs b/src/Telegram.Bot/Requests/Stickers/GetStickerSetRequest.cs index 6ed33c836..24abb5755 100644 --- a/src/Telegram.Bot/Requests/Stickers/GetStickerSetRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/GetStickerSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to get a sticker set.Returns: A object is returned. public partial class GetStickerSetRequest() : RequestBase("getStickerSet") diff --git a/src/Telegram.Bot/Requests/Stickers/ReplaceStickerInSetRequest.cs b/src/Telegram.Bot/Requests/Stickers/ReplaceStickerInSetRequest.cs index d14a7eb05..e52e5fe48 100644 --- a/src/Telegram.Bot/Requests/Stickers/ReplaceStickerInSetRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/ReplaceStickerInSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling DeleteStickerFromSet, then AddStickerToSet, then SetStickerPositionInSet.Returns: public partial class ReplaceStickerInSetRequest() : FileRequestBase("replaceStickerInSet"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Stickers/SendGiftRequest.cs b/src/Telegram.Bot/Requests/Stickers/SendGiftRequest.cs index affea2d4b..56247cee8 100644 --- a/src/Telegram.Bot/Requests/Stickers/SendGiftRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SendGiftRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user.Returns: public partial class SendGiftRequest() : RequestBase("sendGift"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Stickers/SendStickerRequest.cs b/src/Telegram.Bot/Requests/Stickers/SendStickerRequest.cs index 9a59b5602..2494b1c1d 100644 --- a/src/Telegram.Bot/Requests/Stickers/SendStickerRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SendStickerRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers.Returns: The sent is returned. public partial class SendStickerRequest() : FileRequestBase("sendSticker"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Stickers/SetCustomEmojiStickerSetThumbnailRequest.cs b/src/Telegram.Bot/Requests/Stickers/SetCustomEmojiStickerSetThumbnailRequest.cs index 256ebdc24..f62e87809 100644 --- a/src/Telegram.Bot/Requests/Stickers/SetCustomEmojiStickerSetThumbnailRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SetCustomEmojiStickerSetThumbnailRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set the thumbnail of a custom emoji sticker set.Returns: public partial class SetCustomEmojiStickerSetThumbnailRequest() : RequestBase("setCustomEmojiStickerSetThumbnail") diff --git a/src/Telegram.Bot/Requests/Stickers/SetStickerEmojiListRequest.cs b/src/Telegram.Bot/Requests/Stickers/SetStickerEmojiListRequest.cs index 966b64dfc..decf6743e 100644 --- a/src/Telegram.Bot/Requests/Stickers/SetStickerEmojiListRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SetStickerEmojiListRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot.Returns: public partial class SetStickerEmojiListRequest() : RequestBase("setStickerEmojiList") diff --git a/src/Telegram.Bot/Requests/Stickers/SetStickerKeywordsRequest.cs b/src/Telegram.Bot/Requests/Stickers/SetStickerKeywordsRequest.cs index c04811de5..8766b1a72 100644 --- a/src/Telegram.Bot/Requests/Stickers/SetStickerKeywordsRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SetStickerKeywordsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change search keywords assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot.Returns: public partial class SetStickerKeywordsRequest() : RequestBase("setStickerKeywords") diff --git a/src/Telegram.Bot/Requests/Stickers/SetStickerMaskPositionRequest.cs b/src/Telegram.Bot/Requests/Stickers/SetStickerMaskPositionRequest.cs index ac8a8de65..5d3b9dc6e 100644 --- a/src/Telegram.Bot/Requests/Stickers/SetStickerMaskPositionRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SetStickerMaskPositionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker set that was created by the bot.Returns: public partial class SetStickerMaskPositionRequest() : RequestBase("setStickerMaskPosition") diff --git a/src/Telegram.Bot/Requests/Stickers/SetStickerPositionInSetRequest.cs b/src/Telegram.Bot/Requests/Stickers/SetStickerPositionInSetRequest.cs index 01554e4da..ae137612b 100644 --- a/src/Telegram.Bot/Requests/Stickers/SetStickerPositionInSetRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SetStickerPositionInSetRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to move a sticker in a set created by the bot to a specific position.Returns: public partial class SetStickerPositionInSetRequest() : RequestBase("setStickerPositionInSet") diff --git a/src/Telegram.Bot/Requests/Stickers/SetStickerSetThumbnailRequest.cs b/src/Telegram.Bot/Requests/Stickers/SetStickerSetThumbnailRequest.cs index 2b60afdca..d0b99ef32 100644 --- a/src/Telegram.Bot/Requests/Stickers/SetStickerSetThumbnailRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SetStickerSetThumbnailRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set.Returns: public partial class SetStickerSetThumbnailRequest() : FileRequestBase("setStickerSetThumbnail"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Stickers/SetStickerSetTitleRequest.cs b/src/Telegram.Bot/Requests/Stickers/SetStickerSetTitleRequest.cs index 970eafd60..6c959cc80 100644 --- a/src/Telegram.Bot/Requests/Stickers/SetStickerSetTitleRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/SetStickerSetTitleRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to set the title of a created sticker set.Returns: public partial class SetStickerSetTitleRequest() : RequestBase("setStickerSetTitle") diff --git a/src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs b/src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs index 623d2153c..c17f731d3 100644 --- a/src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to upload a file with a sticker for later use in the CreateNewStickerSet, AddStickerToSet, or ReplaceStickerInSet methods (the file can be used multiple times).Returns: The uploaded on success. public partial class UploadStickerFileRequest() : FileRequestBase("uploadStickerFile"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Telegram Passport/SetPassportDataErrorsRequest.cs b/src/Telegram.Bot/Requests/Telegram Passport/SetPassportDataErrorsRequest.cs index dabd8fd40..b35cef56a 100644 --- a/src/Telegram.Bot/Requests/Telegram Passport/SetPassportDataErrorsRequest.cs +++ b/src/Telegram.Bot/Requests/Telegram Passport/SetPassportDataErrorsRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change).
Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.Returns:
public partial class SetPassportDataErrorsRequest() : RequestBase("setPassportDataErrors"), IUserTargetable diff --git a/src/Telegram.Bot/Requests/Updating messages/DeleteMessageRequest.cs b/src/Telegram.Bot/Requests/Updating messages/DeleteMessageRequest.cs index ccdee5efa..379e0d175 100644 --- a/src/Telegram.Bot/Requests/Updating messages/DeleteMessageRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/DeleteMessageRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to delete a message, including service messages, with the following limitations:
- A message can only be deleted if it was sent less than 48 hours ago.
- Service messages about a supergroup, channel, or forum topic creation can't be deleted.
- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.
- Bots can delete outgoing messages in private chats, groups, and supergroups.
- Bots can delete incoming messages in private chats.
- Bots granted CanPostMessages permissions can delete outgoing messages in channels.
- If the bot is an administrator of a group, it can delete any message there.
- If the bot has CanDeleteMessages permission in a supergroup or a channel, it can delete any message there.
Returns True on success.Returns:
public partial class DeleteMessageRequest() : RequestBase("deleteMessage"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Updating messages/DeleteMessagesRequest.cs b/src/Telegram.Bot/Requests/Updating messages/DeleteMessagesRequest.cs index 6c65620f3..2772a531b 100644 --- a/src/Telegram.Bot/Requests/Updating messages/DeleteMessagesRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/DeleteMessagesRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped.Returns: public partial class DeleteMessagesRequest() : RequestBase("deleteMessages"), IChatTargetable diff --git a/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageCaptionRequest.cs b/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageCaptionRequest.cs index 731fa9468..618870667 100644 --- a/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageCaptionRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageCaptionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit captions of messages.Returns: public partial class EditInlineMessageCaptionRequest() : RequestBase("editMessageCaption"), IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageMediaRequest.cs b/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageMediaRequest.cs index 668875279..e69e7d952 100644 --- a/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageMediaRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageMediaRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its FileId or specify a URL.Returns: public partial class EditInlineMessageMediaRequest() : FileRequestBase("editMessageMedia"), IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageReplyMarkupRequest.cs b/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageReplyMarkupRequest.cs index 7fd51aa18..e46e6dad8 100644 --- a/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageReplyMarkupRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageReplyMarkupRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit only the reply markup of messages.Returns: public partial class EditInlineMessageReplyMarkupRequest() : RequestBase("editMessageReplyMarkup"), IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageTextRequest.cs b/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageTextRequest.cs index e04146024..464271690 100644 --- a/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageTextRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/EditInlineMessageTextRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit text and game messages.Returns: public partial class EditInlineMessageTextRequest() : RequestBase("editMessageText"), IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Updating messages/EditMessageCaptionRequest.cs b/src/Telegram.Bot/Requests/Updating messages/EditMessageCaptionRequest.cs index 3dc38c6fb..9a7715e88 100644 --- a/src/Telegram.Bot/Requests/Updating messages/EditMessageCaptionRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/EditMessageCaptionRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit captions of messages.Returns: The edited is returned public partial class EditMessageCaptionRequest() : RequestBase("editMessageCaption"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Updating messages/EditMessageMediaRequest.cs b/src/Telegram.Bot/Requests/Updating messages/EditMessageMediaRequest.cs index 3f6a7820d..8df12c5b7 100644 --- a/src/Telegram.Bot/Requests/Updating messages/EditMessageMediaRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/EditMessageMediaRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its FileId or specify a URL.Returns: The edited is returned public partial class EditMessageMediaRequest() : FileRequestBase("editMessageMedia"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Updating messages/EditMessageReplyMarkupRequest.cs b/src/Telegram.Bot/Requests/Updating messages/EditMessageReplyMarkupRequest.cs index 49a77b305..f51d18519 100644 --- a/src/Telegram.Bot/Requests/Updating messages/EditMessageReplyMarkupRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/EditMessageReplyMarkupRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit only the reply markup of messages.Returns: The edited is returned public partial class EditMessageReplyMarkupRequest() : RequestBase("editMessageReplyMarkup"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Updating messages/EditMessageTextRequest.cs b/src/Telegram.Bot/Requests/Updating messages/EditMessageTextRequest.cs index 32e23a833..d7df525bc 100644 --- a/src/Telegram.Bot/Requests/Updating messages/EditMessageTextRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/EditMessageTextRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to edit text and game messages.Returns: The edited is returned public partial class EditMessageTextRequest() : RequestBase("editMessageText"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/Requests/Updating messages/StopPollRequest.cs b/src/Telegram.Bot/Requests/Updating messages/StopPollRequest.cs index 110276b27..c556ad46a 100644 --- a/src/Telegram.Bot/Requests/Updating messages/StopPollRequest.cs +++ b/src/Telegram.Bot/Requests/Updating messages/StopPollRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Requests; +namespace Telegram.Bot.Requests; /// Use this method to stop a poll which was sent by the bot.Returns: The stopped is returned. public partial class StopPollRequest() : RequestBase("stopPoll"), IChatTargetable, IBusinessConnectable diff --git a/src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs b/src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs index 2ea98d34c..50b6c74f3 100644 --- a/src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs +++ b/src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs @@ -1,4 +1,4 @@ -using System.Threading; +using System.Threading; using System.Threading.Tasks; using Telegram.Bot.Requests; @@ -4688,8 +4688,8 @@ public static Task SendInvoiceAsync( /// Pass if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars. /// Pass if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars. /// Pass if the final price depends on the shipping method. Ignored for payments in Telegram Stars. - /// The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. - /// Unique identifier of the business connection on behalf of which the link will be created + /// The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. Any number of subscriptions can be active for a given bot at the same time, including multiple concurrent subscriptions from the same user. + /// Unique identifier of the business connection on behalf of which the link will be created. For payments in Telegram Stars only. /// A cancellation token that can be used by other objects or threads to receive notice of cancellation /// The created invoice link as String on success. public static async Task CreateInvoiceLink( diff --git a/src/Telegram.Bot/Types/Animation.cs b/src/Telegram.Bot/Types/Animation.cs index 240321221..c96201be7 100644 --- a/src/Telegram.Bot/Types/Animation.cs +++ b/src/Telegram.Bot/Types/Animation.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound). public partial class Animation : FileBase diff --git a/src/Telegram.Bot/Types/Audio.cs b/src/Telegram.Bot/Types/Audio.cs index f1f72fcf1..c9fb79719 100644 --- a/src/Telegram.Bot/Types/Audio.cs +++ b/src/Telegram.Bot/Types/Audio.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an audio file to be treated as music by the Telegram clients. public partial class Audio : FileBase diff --git a/src/Telegram.Bot/Types/BackgroundFill.cs b/src/Telegram.Bot/Types/BackgroundFill.cs index 15911d0ae..0967ef05a 100644 --- a/src/Telegram.Bot/Types/BackgroundFill.cs +++ b/src/Telegram.Bot/Types/BackgroundFill.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes the way a background is filled based on the selected colors. Currently, it can be one of
, ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/BackgroundType.cs b/src/Telegram.Bot/Types/BackgroundType.cs index 441ff9f94..128fd5c5e 100644 --- a/src/Telegram.Bot/Types/BackgroundType.cs +++ b/src/Telegram.Bot/Types/BackgroundType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes the type of a background. Currently, it can be one of
, , ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/Birthdate.cs b/src/Telegram.Bot/Types/Birthdate.cs index 4765781ab..b49c338ec 100644 --- a/src/Telegram.Bot/Types/Birthdate.cs +++ b/src/Telegram.Bot/Types/Birthdate.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes the birthdate of a user. public partial class Birthdate diff --git a/src/Telegram.Bot/Types/BotCommand.cs b/src/Telegram.Bot/Types/BotCommand.cs index 0f1dd0066..d27321a69 100644 --- a/src/Telegram.Bot/Types/BotCommand.cs +++ b/src/Telegram.Bot/Types/BotCommand.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a bot command. public partial class BotCommand diff --git a/src/Telegram.Bot/Types/BotCommandScope.cs b/src/Telegram.Bot/Types/BotCommandScope.cs index 985ffb10a..b5ead9389 100644 --- a/src/Telegram.Bot/Types/BotCommandScope.cs +++ b/src/Telegram.Bot/Types/BotCommandScope.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:
, , , , , ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/BotDescription.cs b/src/Telegram.Bot/Types/BotDescription.cs index c281978f2..593184bc0 100644 --- a/src/Telegram.Bot/Types/BotDescription.cs +++ b/src/Telegram.Bot/Types/BotDescription.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents the bot's description. public partial class BotDescription diff --git a/src/Telegram.Bot/Types/BotName.cs b/src/Telegram.Bot/Types/BotName.cs index 42457348d..dcfd09fea 100644 --- a/src/Telegram.Bot/Types/BotName.cs +++ b/src/Telegram.Bot/Types/BotName.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents the bot's name. public partial class BotName diff --git a/src/Telegram.Bot/Types/BotShortDescription.cs b/src/Telegram.Bot/Types/BotShortDescription.cs index 241a89515..390364eb3 100644 --- a/src/Telegram.Bot/Types/BotShortDescription.cs +++ b/src/Telegram.Bot/Types/BotShortDescription.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents the bot's short description. public partial class BotShortDescription diff --git a/src/Telegram.Bot/Types/BusinessConnection.cs b/src/Telegram.Bot/Types/BusinessConnection.cs index 67046e51e..0bb664e17 100644 --- a/src/Telegram.Bot/Types/BusinessConnection.cs +++ b/src/Telegram.Bot/Types/BusinessConnection.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes the connection of the bot with a business account. public partial class BusinessConnection diff --git a/src/Telegram.Bot/Types/BusinessIntro.cs b/src/Telegram.Bot/Types/BusinessIntro.cs index 62d73750f..548f7eed5 100644 --- a/src/Telegram.Bot/Types/BusinessIntro.cs +++ b/src/Telegram.Bot/Types/BusinessIntro.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Contains information about the start page settings of a Telegram Business account. public partial class BusinessIntro diff --git a/src/Telegram.Bot/Types/BusinessLocation.cs b/src/Telegram.Bot/Types/BusinessLocation.cs index 6b6021b6d..333591637 100644 --- a/src/Telegram.Bot/Types/BusinessLocation.cs +++ b/src/Telegram.Bot/Types/BusinessLocation.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Contains information about the location of a Telegram Business account. public partial class BusinessLocation diff --git a/src/Telegram.Bot/Types/BusinessMessagesDeleted.cs b/src/Telegram.Bot/Types/BusinessMessagesDeleted.cs index 9d85bfc73..fb8acbc5c 100644 --- a/src/Telegram.Bot/Types/BusinessMessagesDeleted.cs +++ b/src/Telegram.Bot/Types/BusinessMessagesDeleted.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object is received when messages are deleted from a connected business account. public partial class BusinessMessagesDeleted diff --git a/src/Telegram.Bot/Types/BusinessOpeningHours.cs b/src/Telegram.Bot/Types/BusinessOpeningHours.cs index 7a009a800..f4546b34a 100644 --- a/src/Telegram.Bot/Types/BusinessOpeningHours.cs +++ b/src/Telegram.Bot/Types/BusinessOpeningHours.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes the opening hours of a business. public partial class BusinessOpeningHours diff --git a/src/Telegram.Bot/Types/BusinessOpeningHoursInterval.cs b/src/Telegram.Bot/Types/BusinessOpeningHoursInterval.cs index 9c573c0fa..f4eaf5831 100644 --- a/src/Telegram.Bot/Types/BusinessOpeningHoursInterval.cs +++ b/src/Telegram.Bot/Types/BusinessOpeningHoursInterval.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes an interval of time during which a business is open. public partial class BusinessOpeningHoursInterval diff --git a/src/Telegram.Bot/Types/CallbackGame.cs b/src/Telegram.Bot/Types/CallbackGame.cs index fc9df95da..b456a88ce 100644 --- a/src/Telegram.Bot/Types/CallbackGame.cs +++ b/src/Telegram.Bot/Types/CallbackGame.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// A placeholder, currently holds no information. Use @BotFather to set up your game. public partial class CallbackGame; diff --git a/src/Telegram.Bot/Types/CallbackQuery.cs b/src/Telegram.Bot/Types/CallbackQuery.cs index 8a930a339..5a79f231f 100644 --- a/src/Telegram.Bot/Types/CallbackQuery.cs +++ b/src/Telegram.Bot/Types/CallbackQuery.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field Message will be present. If the button was attached to a message sent via the bot (in inline mode), the field InlineMessageId will be present. Exactly one of the fields Data or GameShortName will be present. /// NOTE: After the user presses a callback button, Telegram clients will display a progress bar until you call AnswerCallbackQuery. It is, therefore, necessary to react by calling AnswerCallbackQuery even if no notification to the user is needed (e.g., without specifying any of the optional parameters). diff --git a/src/Telegram.Bot/Types/Chat.cs b/src/Telegram.Bot/Types/Chat.cs index d1cd6d906..7a69ccccc 100644 --- a/src/Telegram.Bot/Types/Chat.cs +++ b/src/Telegram.Bot/Types/Chat.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a chat. public partial class Chat diff --git a/src/Telegram.Bot/Types/ChatAdministratorRights.cs b/src/Telegram.Bot/Types/ChatAdministratorRights.cs index 515568736..f84079002 100644 --- a/src/Telegram.Bot/Types/ChatAdministratorRights.cs +++ b/src/Telegram.Bot/Types/ChatAdministratorRights.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Represents the rights of an administrator in a chat. public partial class ChatAdministratorRights diff --git a/src/Telegram.Bot/Types/ChatBoost.cs b/src/Telegram.Bot/Types/ChatBoost.cs index 6988a3c89..ed320a05e 100644 --- a/src/Telegram.Bot/Types/ChatBoost.cs +++ b/src/Telegram.Bot/Types/ChatBoost.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about a chat boost. public partial class ChatBoost diff --git a/src/Telegram.Bot/Types/ChatBoostAdded.cs b/src/Telegram.Bot/Types/ChatBoostAdded.cs index 0e2587e9e..bd3b594e3 100644 --- a/src/Telegram.Bot/Types/ChatBoostAdded.cs +++ b/src/Telegram.Bot/Types/ChatBoostAdded.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a user boosting a chat. public partial class ChatBoostAdded diff --git a/src/Telegram.Bot/Types/ChatBoostRemoved.cs b/src/Telegram.Bot/Types/ChatBoostRemoved.cs index 6c0e98eb1..a4ce3c1ca 100644 --- a/src/Telegram.Bot/Types/ChatBoostRemoved.cs +++ b/src/Telegram.Bot/Types/ChatBoostRemoved.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a boost removed from a chat. public partial class ChatBoostRemoved diff --git a/src/Telegram.Bot/Types/ChatBoostSource.cs b/src/Telegram.Bot/Types/ChatBoostSource.cs index b443976e1..1a26c206c 100644 --- a/src/Telegram.Bot/Types/ChatBoostSource.cs +++ b/src/Telegram.Bot/Types/ChatBoostSource.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes the source of a chat boost. It can be one of
, ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/ChatBoostUpdated.cs b/src/Telegram.Bot/Types/ChatBoostUpdated.cs index 099ac9ed1..7c9734c1c 100644 --- a/src/Telegram.Bot/Types/ChatBoostUpdated.cs +++ b/src/Telegram.Bot/Types/ChatBoostUpdated.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a boost added to a chat or changed. public partial class ChatBoostUpdated diff --git a/src/Telegram.Bot/Types/ChatInviteLink.cs b/src/Telegram.Bot/Types/ChatInviteLink.cs index d07c67185..ca032baea 100644 --- a/src/Telegram.Bot/Types/ChatInviteLink.cs +++ b/src/Telegram.Bot/Types/ChatInviteLink.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Represents an invite link for a chat. public partial class ChatInviteLink diff --git a/src/Telegram.Bot/Types/ChatJoinRequest.cs b/src/Telegram.Bot/Types/ChatJoinRequest.cs index 709e4b833..553f9eaff 100644 --- a/src/Telegram.Bot/Types/ChatJoinRequest.cs +++ b/src/Telegram.Bot/Types/ChatJoinRequest.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Represents a join request sent to a chat. public partial class ChatJoinRequest diff --git a/src/Telegram.Bot/Types/ChatLocation.cs b/src/Telegram.Bot/Types/ChatLocation.cs index 656641c7a..74e565f62 100644 --- a/src/Telegram.Bot/Types/ChatLocation.cs +++ b/src/Telegram.Bot/Types/ChatLocation.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Represents a location to which a chat is connected. public partial class ChatLocation diff --git a/src/Telegram.Bot/Types/ChatMember.cs b/src/Telegram.Bot/Types/ChatMember.cs index 8ec2392d8..421179a1b 100644 --- a/src/Telegram.Bot/Types/ChatMember.cs +++ b/src/Telegram.Bot/Types/ChatMember.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:
, , , , ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/ChatMemberUpdated.cs b/src/Telegram.Bot/Types/ChatMemberUpdated.cs index 83b0e1cec..855d48a27 100644 --- a/src/Telegram.Bot/Types/ChatMemberUpdated.cs +++ b/src/Telegram.Bot/Types/ChatMemberUpdated.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents changes in the status of a chat member. public partial class ChatMemberUpdated diff --git a/src/Telegram.Bot/Types/ChatPermissions.cs b/src/Telegram.Bot/Types/ChatPermissions.cs index 821281782..1d304fb36 100644 --- a/src/Telegram.Bot/Types/ChatPermissions.cs +++ b/src/Telegram.Bot/Types/ChatPermissions.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes actions that a non-administrator user is allowed to take in a chat. public partial class ChatPermissions diff --git a/src/Telegram.Bot/Types/ChatPhoto.cs b/src/Telegram.Bot/Types/ChatPhoto.cs index e7a703c7f..3b730ef0f 100644 --- a/src/Telegram.Bot/Types/ChatPhoto.cs +++ b/src/Telegram.Bot/Types/ChatPhoto.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a chat photo. public partial class ChatPhoto diff --git a/src/Telegram.Bot/Types/ChatShared.cs b/src/Telegram.Bot/Types/ChatShared.cs index ea40ccdc2..12513989c 100644 --- a/src/Telegram.Bot/Types/ChatShared.cs +++ b/src/Telegram.Bot/Types/ChatShared.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about a chat that was shared with the bot using a button. public partial class ChatShared diff --git a/src/Telegram.Bot/Types/ChosenInlineResult.cs b/src/Telegram.Bot/Types/ChosenInlineResult.cs index e3944f843..190cb8255 100644 --- a/src/Telegram.Bot/Types/ChosenInlineResult.cs +++ b/src/Telegram.Bot/Types/ChosenInlineResult.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Note: It is necessary to enable inline feedback via @BotFather in order to receive these objects in updates.
public partial class ChosenInlineResult diff --git a/src/Telegram.Bot/Types/Contact.cs b/src/Telegram.Bot/Types/Contact.cs index bc17c6e46..860f7bd4d 100644 --- a/src/Telegram.Bot/Types/Contact.cs +++ b/src/Telegram.Bot/Types/Contact.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a phone contact. public partial class Contact diff --git a/src/Telegram.Bot/Types/CopyTextButton.cs b/src/Telegram.Bot/Types/CopyTextButton.cs index 22f978037..200f42dfe 100644 --- a/src/Telegram.Bot/Types/CopyTextButton.cs +++ b/src/Telegram.Bot/Types/CopyTextButton.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an inline keyboard button that copies specified text to the clipboard. public partial class CopyTextButton diff --git a/src/Telegram.Bot/Types/Dice.cs b/src/Telegram.Bot/Types/Dice.cs index b24752902..d145aeca3 100644 --- a/src/Telegram.Bot/Types/Dice.cs +++ b/src/Telegram.Bot/Types/Dice.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an animated emoji that displays a random value. public partial class Dice diff --git a/src/Telegram.Bot/Types/Document.cs b/src/Telegram.Bot/Types/Document.cs index f3a97961b..d8df25e8b 100644 --- a/src/Telegram.Bot/Types/Document.cs +++ b/src/Telegram.Bot/Types/Document.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a general file (as opposed to photos, voice messages and audio files). public partial class Document : FileBase diff --git a/src/Telegram.Bot/Types/Enums/BackgroundFillType.cs b/src/Telegram.Bot/Types/Enums/BackgroundFillType.cs index 2f9905f6d..6be9b3a69 100644 --- a/src/Telegram.Bot/Types/Enums/BackgroundFillType.cs +++ b/src/Telegram.Bot/Types/Enums/BackgroundFillType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Type of the background fill [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/BackgroundTypeKind.cs b/src/Telegram.Bot/Types/Enums/BackgroundTypeKind.cs index 84bb9451e..6255c815b 100644 --- a/src/Telegram.Bot/Types/Enums/BackgroundTypeKind.cs +++ b/src/Telegram.Bot/Types/Enums/BackgroundTypeKind.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Type of the background [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/BotCommandScopeType.cs b/src/Telegram.Bot/Types/Enums/BotCommandScopeType.cs index bbb03a8b2..5a33d90dd 100644 --- a/src/Telegram.Bot/Types/Enums/BotCommandScopeType.cs +++ b/src/Telegram.Bot/Types/Enums/BotCommandScopeType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Scope type [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/ChatBoostSourceType.cs b/src/Telegram.Bot/Types/Enums/ChatBoostSourceType.cs index e2f2a068c..be022b14a 100644 --- a/src/Telegram.Bot/Types/Enums/ChatBoostSourceType.cs +++ b/src/Telegram.Bot/Types/Enums/ChatBoostSourceType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Source of the boost [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/ChatMemberStatus.cs b/src/Telegram.Bot/Types/Enums/ChatMemberStatus.cs index 57a2dadc4..7f60ae60d 100644 --- a/src/Telegram.Bot/Types/Enums/ChatMemberStatus.cs +++ b/src/Telegram.Bot/Types/Enums/ChatMemberStatus.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// The member's status in the chat [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/InputMediaType.cs b/src/Telegram.Bot/Types/Enums/InputMediaType.cs index 7f1c353f9..9f6f5f9ff 100644 --- a/src/Telegram.Bot/Types/Enums/InputMediaType.cs +++ b/src/Telegram.Bot/Types/Enums/InputMediaType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Type of the result [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/InputPaidMediaType.cs b/src/Telegram.Bot/Types/Enums/InputPaidMediaType.cs index 9b4ce66de..db041bb14 100644 --- a/src/Telegram.Bot/Types/Enums/InputPaidMediaType.cs +++ b/src/Telegram.Bot/Types/Enums/InputPaidMediaType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Type of the media [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/MaskPositionPoint.cs b/src/Telegram.Bot/Types/Enums/MaskPositionPoint.cs index 5e220f248..c6089bfbb 100644 --- a/src/Telegram.Bot/Types/Enums/MaskPositionPoint.cs +++ b/src/Telegram.Bot/Types/Enums/MaskPositionPoint.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// : The part of the face relative to which the mask should be placed. One of Forehead, Eyes, Mouth, or Chin. [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/MenuButtonType.cs b/src/Telegram.Bot/Types/Enums/MenuButtonType.cs index bde98b830..daa80f587 100644 --- a/src/Telegram.Bot/Types/Enums/MenuButtonType.cs +++ b/src/Telegram.Bot/Types/Enums/MenuButtonType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Type of the button [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/MessageOriginType.cs b/src/Telegram.Bot/Types/Enums/MessageOriginType.cs index a1d6e0b2f..7f1c18d26 100644 --- a/src/Telegram.Bot/Types/Enums/MessageOriginType.cs +++ b/src/Telegram.Bot/Types/Enums/MessageOriginType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Type of the message origin [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/MessageType.cs b/src/Telegram.Bot/Types/Enums/MessageType.cs index 45433512e..92dc30547 100644 --- a/src/Telegram.Bot/Types/Enums/MessageType.cs +++ b/src/Telegram.Bot/Types/Enums/MessageType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// The type of [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/PaidMediaType.cs b/src/Telegram.Bot/Types/Enums/PaidMediaType.cs index 3db0fec24..22f835d1f 100644 --- a/src/Telegram.Bot/Types/Enums/PaidMediaType.cs +++ b/src/Telegram.Bot/Types/Enums/PaidMediaType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Type of the paid media, always [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/ReactionTypeKind.cs b/src/Telegram.Bot/Types/Enums/ReactionTypeKind.cs index 215766ee4..144d8f6d1 100644 --- a/src/Telegram.Bot/Types/Enums/ReactionTypeKind.cs +++ b/src/Telegram.Bot/Types/Enums/ReactionTypeKind.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// Type of the reaction [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/StickerFormat.cs b/src/Telegram.Bot/Types/Enums/StickerFormat.cs index 9e114e4a6..9ca89977c 100644 --- a/src/Telegram.Bot/Types/Enums/StickerFormat.cs +++ b/src/Telegram.Bot/Types/Enums/StickerFormat.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// : Format of the added sticker, must be one of Static for a .WEBP or .PNG image, Animated for a .TGS animation, Video for a WEBM video [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/StickerType.cs b/src/Telegram.Bot/Types/Enums/StickerType.cs index ff0809f4c..e630da1a0 100644 --- a/src/Telegram.Bot/Types/Enums/StickerType.cs +++ b/src/Telegram.Bot/Types/Enums/StickerType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// : Type of the sticker, currently one of Regular, Mask, CustomEmoji. The type of the sticker is independent from its format, which is determined by the fields IsAnimated and IsVideo. [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Enums/UpdateType.cs b/src/Telegram.Bot/Types/Enums/UpdateType.cs index 8382be106..d060fc1e8 100644 --- a/src/Telegram.Bot/Types/Enums/UpdateType.cs +++ b/src/Telegram.Bot/Types/Enums/UpdateType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Enums; +namespace Telegram.Bot.Types.Enums; /// The type of [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/ExternalReplyInfo.cs b/src/Telegram.Bot/Types/ExternalReplyInfo.cs index 2552a28f0..f8f83086c 100644 --- a/src/Telegram.Bot/Types/ExternalReplyInfo.cs +++ b/src/Telegram.Bot/Types/ExternalReplyInfo.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about a message that is being replied to, which may come from another chat or forum topic. public partial class ExternalReplyInfo diff --git a/src/Telegram.Bot/Types/File.cs b/src/Telegram.Bot/Types/File.cs index 570071aa2..f89e79671 100644 --- a/src/Telegram.Bot/Types/File.cs +++ b/src/Telegram.Bot/Types/File.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a file ready to be downloaded. The file can be downloaded via DownloadFile. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling GetFile. /// The maximum file size to download is 20 MB diff --git a/src/Telegram.Bot/Types/FileBase.cs b/src/Telegram.Bot/Types/FileBase.cs index 4863d77b1..db75df7d0 100644 --- a/src/Telegram.Bot/Types/FileBase.cs +++ b/src/Telegram.Bot/Types/FileBase.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Base class for file objects public abstract partial class FileBase diff --git a/src/Telegram.Bot/Types/ForumTopic.cs b/src/Telegram.Bot/Types/ForumTopic.cs index 71181ac28..2b72a69a7 100644 --- a/src/Telegram.Bot/Types/ForumTopic.cs +++ b/src/Telegram.Bot/Types/ForumTopic.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a forum topic. public partial class ForumTopic diff --git a/src/Telegram.Bot/Types/ForumTopicClosed.cs b/src/Telegram.Bot/Types/ForumTopicClosed.cs index a4d8b1f5c..7fe2de6e7 100644 --- a/src/Telegram.Bot/Types/ForumTopicClosed.cs +++ b/src/Telegram.Bot/Types/ForumTopicClosed.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a forum topic closed in the chat. Currently holds no information. public partial class ForumTopicClosed; diff --git a/src/Telegram.Bot/Types/ForumTopicCreated.cs b/src/Telegram.Bot/Types/ForumTopicCreated.cs index d7b371c30..8f92da54d 100644 --- a/src/Telegram.Bot/Types/ForumTopicCreated.cs +++ b/src/Telegram.Bot/Types/ForumTopicCreated.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a new forum topic created in the chat. public partial class ForumTopicCreated diff --git a/src/Telegram.Bot/Types/ForumTopicEdited.cs b/src/Telegram.Bot/Types/ForumTopicEdited.cs index 02fbbe5f1..7f9839c54 100644 --- a/src/Telegram.Bot/Types/ForumTopicEdited.cs +++ b/src/Telegram.Bot/Types/ForumTopicEdited.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about an edited forum topic. public partial class ForumTopicEdited diff --git a/src/Telegram.Bot/Types/ForumTopicReopened.cs b/src/Telegram.Bot/Types/ForumTopicReopened.cs index dd4333b93..732e806bb 100644 --- a/src/Telegram.Bot/Types/ForumTopicReopened.cs +++ b/src/Telegram.Bot/Types/ForumTopicReopened.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a forum topic reopened in the chat. Currently holds no information. public partial class ForumTopicReopened; diff --git a/src/Telegram.Bot/Types/Game.cs b/src/Telegram.Bot/Types/Game.cs index dc5dd985c..aa1363b2e 100644 --- a/src/Telegram.Bot/Types/Game.cs +++ b/src/Telegram.Bot/Types/Game.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers. public partial class Game diff --git a/src/Telegram.Bot/Types/GameHighScore.cs b/src/Telegram.Bot/Types/GameHighScore.cs index 8f9dd9983..615ae9911 100644 --- a/src/Telegram.Bot/Types/GameHighScore.cs +++ b/src/Telegram.Bot/Types/GameHighScore.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents one row of the high scores table for a game. public partial class GameHighScore diff --git a/src/Telegram.Bot/Types/GeneralForumTopicHidden.cs b/src/Telegram.Bot/Types/GeneralForumTopicHidden.cs index a7d73e642..5161b5362 100644 --- a/src/Telegram.Bot/Types/GeneralForumTopicHidden.cs +++ b/src/Telegram.Bot/Types/GeneralForumTopicHidden.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about General forum topic hidden in the chat. Currently holds no information. public partial class GeneralForumTopicHidden; diff --git a/src/Telegram.Bot/Types/GeneralForumTopicUnhidden.cs b/src/Telegram.Bot/Types/GeneralForumTopicUnhidden.cs index f91c89a69..b6f4b60f7 100644 --- a/src/Telegram.Bot/Types/GeneralForumTopicUnhidden.cs +++ b/src/Telegram.Bot/Types/GeneralForumTopicUnhidden.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about General forum topic unhidden in the chat. Currently holds no information. public partial class GeneralForumTopicUnhidden; diff --git a/src/Telegram.Bot/Types/Gift.cs b/src/Telegram.Bot/Types/Gift.cs index 22aa5a8d9..d325eca0b 100644 --- a/src/Telegram.Bot/Types/Gift.cs +++ b/src/Telegram.Bot/Types/Gift.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a gift that can be sent by the bot. public partial class Gift diff --git a/src/Telegram.Bot/Types/GiftList.cs b/src/Telegram.Bot/Types/GiftList.cs index 39454488a..2e08c0da8 100644 --- a/src/Telegram.Bot/Types/GiftList.cs +++ b/src/Telegram.Bot/Types/GiftList.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represent a list of gifts. public partial class GiftList diff --git a/src/Telegram.Bot/Types/Giveaway.cs b/src/Telegram.Bot/Types/Giveaway.cs index 7ee211082..961d7b835 100644 --- a/src/Telegram.Bot/Types/Giveaway.cs +++ b/src/Telegram.Bot/Types/Giveaway.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a message about a scheduled giveaway. public partial class Giveaway diff --git a/src/Telegram.Bot/Types/GiveawayCompleted.cs b/src/Telegram.Bot/Types/GiveawayCompleted.cs index b4898efdf..29a63bd3d 100644 --- a/src/Telegram.Bot/Types/GiveawayCompleted.cs +++ b/src/Telegram.Bot/Types/GiveawayCompleted.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about the completion of a giveaway without public winners. public partial class GiveawayCompleted diff --git a/src/Telegram.Bot/Types/GiveawayCreated.cs b/src/Telegram.Bot/Types/GiveawayCreated.cs index 6372bec61..b9fa21a63 100644 --- a/src/Telegram.Bot/Types/GiveawayCreated.cs +++ b/src/Telegram.Bot/Types/GiveawayCreated.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about the creation of a scheduled giveaway. public partial class GiveawayCreated diff --git a/src/Telegram.Bot/Types/GiveawayWinners.cs b/src/Telegram.Bot/Types/GiveawayWinners.cs index fcf2a0156..45c590b39 100644 --- a/src/Telegram.Bot/Types/GiveawayWinners.cs +++ b/src/Telegram.Bot/Types/GiveawayWinners.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a message about the completion of a giveaway with public winners. public partial class GiveawayWinners diff --git a/src/Telegram.Bot/Types/InlineQuery.cs b/src/Telegram.Bot/Types/InlineQuery.cs index fe84d18c5..d98b97d7a 100644 --- a/src/Telegram.Bot/Types/InlineQuery.cs +++ b/src/Telegram.Bot/Types/InlineQuery.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results. public partial class InlineQuery diff --git a/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResult.cs b/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResult.cs index 9cb38db3e..dbaa3218a 100644 --- a/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResult.cs +++ b/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResult.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.InlineQueryResults; +namespace Telegram.Bot.Types.InlineQueryResults; /// This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:
, , , , , , , , , , , , , , , , , , ,
Note: All URLs passed in inline query results will be available to end users and therefore must be assumed to be public.
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultType.cs b/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultType.cs index 5ff4aae49..af7d1e816 100644 --- a/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultType.cs +++ b/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.InlineQueryResults; +namespace Telegram.Bot.Types.InlineQueryResults; /// Type of the result [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultsButton.cs b/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultsButton.cs index d1afb57f6..0a6a97c6e 100644 --- a/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultsButton.cs +++ b/src/Telegram.Bot/Types/InlineQueryResults/InlineQueryResultsButton.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.InlineQueryResults; +namespace Telegram.Bot.Types.InlineQueryResults; /// This object represents a button to be shown above inline query results. You must use exactly one of the optional fields. public partial class InlineQueryResultsButton diff --git a/src/Telegram.Bot/Types/InlineQueryResults/InputMessageContent.cs b/src/Telegram.Bot/Types/InlineQueryResults/InputMessageContent.cs index 6cacf9404..814c42976 100644 --- a/src/Telegram.Bot/Types/InlineQueryResults/InputMessageContent.cs +++ b/src/Telegram.Bot/Types/InlineQueryResults/InputMessageContent.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.InlineQueryResults; +namespace Telegram.Bot.Types.InlineQueryResults; /// This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:
, , , ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/InputFiles/InputMedia.cs b/src/Telegram.Bot/Types/InputFiles/InputMedia.cs index 689bef0e6..765cf0774 100644 --- a/src/Telegram.Bot/Types/InputFiles/InputMedia.cs +++ b/src/Telegram.Bot/Types/InputFiles/InputMedia.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents the content of a media message to be sent. It should be one of
, , , ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/InputPaidMedia.cs b/src/Telegram.Bot/Types/InputPaidMedia.cs index 329b749ba..4ff963461 100644 --- a/src/Telegram.Bot/Types/InputPaidMedia.cs +++ b/src/Telegram.Bot/Types/InputPaidMedia.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes the paid media to be sent. Currently, it can be one of
,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/InputPollOption.cs b/src/Telegram.Bot/Types/InputPollOption.cs index 683ca78c7..c74a3db55 100644 --- a/src/Telegram.Bot/Types/InputPollOption.cs +++ b/src/Telegram.Bot/Types/InputPollOption.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about one answer option in a poll to be sent. public partial class InputPollOption diff --git a/src/Telegram.Bot/Types/InputSticker.cs b/src/Telegram.Bot/Types/InputSticker.cs index 60e14a977..06b5c3cc9 100644 --- a/src/Telegram.Bot/Types/InputSticker.cs +++ b/src/Telegram.Bot/Types/InputSticker.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes a sticker to be added to a sticker set. public partial class InputSticker diff --git a/src/Telegram.Bot/Types/LinkPreviewOptions.cs b/src/Telegram.Bot/Types/LinkPreviewOptions.cs index dfcd7bac1..f6110d515 100644 --- a/src/Telegram.Bot/Types/LinkPreviewOptions.cs +++ b/src/Telegram.Bot/Types/LinkPreviewOptions.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes the options used for link preview generation. public partial class LinkPreviewOptions diff --git a/src/Telegram.Bot/Types/Location.cs b/src/Telegram.Bot/Types/Location.cs index dd305fa3e..717be21ae 100644 --- a/src/Telegram.Bot/Types/Location.cs +++ b/src/Telegram.Bot/Types/Location.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a point on the map. public partial class Location diff --git a/src/Telegram.Bot/Types/LoginUrl.cs b/src/Telegram.Bot/Types/LoginUrl.cs index e224b30de..aa4e550db 100644 --- a/src/Telegram.Bot/Types/LoginUrl.cs +++ b/src/Telegram.Bot/Types/LoginUrl.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:


Telegram apps support these buttons as of
version 5.7.
/// Sample bot: @discussbot diff --git a/src/Telegram.Bot/Types/MaskPosition.cs b/src/Telegram.Bot/Types/MaskPosition.cs index a6453b8d4..c4003ffdb 100644 --- a/src/Telegram.Bot/Types/MaskPosition.cs +++ b/src/Telegram.Bot/Types/MaskPosition.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes the position on faces where a mask should be placed by default. public partial class MaskPosition diff --git a/src/Telegram.Bot/Types/MenuButton.cs b/src/Telegram.Bot/Types/MenuButton.cs index 57a1b08e1..7e1e3c537 100644 --- a/src/Telegram.Bot/Types/MenuButton.cs +++ b/src/Telegram.Bot/Types/MenuButton.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes the bot's menu button in a private chat. It should be one of
, ,
If a menu button other than is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands.
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/Message.cs b/src/Telegram.Bot/Types/Message.cs index 790981521..4289b93ee 100644 --- a/src/Telegram.Bot/Types/Message.cs +++ b/src/Telegram.Bot/Types/Message.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a message. public partial class Message diff --git a/src/Telegram.Bot/Types/MessageAutoDeleteTimerChanged.cs b/src/Telegram.Bot/Types/MessageAutoDeleteTimerChanged.cs index 1b70c5947..71cb108ae 100644 --- a/src/Telegram.Bot/Types/MessageAutoDeleteTimerChanged.cs +++ b/src/Telegram.Bot/Types/MessageAutoDeleteTimerChanged.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a change in auto-delete timer settings. public partial class MessageAutoDeleteTimerChanged diff --git a/src/Telegram.Bot/Types/MessageId.cs b/src/Telegram.Bot/Types/MessageId.cs index 6bd7248ab..8b1e9d839 100644 --- a/src/Telegram.Bot/Types/MessageId.cs +++ b/src/Telegram.Bot/Types/MessageId.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a unique message identifier. public partial class MessageId diff --git a/src/Telegram.Bot/Types/MessageOrigin.cs b/src/Telegram.Bot/Types/MessageOrigin.cs index 5a5765086..42aaf86b3 100644 --- a/src/Telegram.Bot/Types/MessageOrigin.cs +++ b/src/Telegram.Bot/Types/MessageOrigin.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes the origin of a message. It can be one of
, , ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/MessageReactionCountUpdated.cs b/src/Telegram.Bot/Types/MessageReactionCountUpdated.cs index 0392df47a..be30f389a 100644 --- a/src/Telegram.Bot/Types/MessageReactionCountUpdated.cs +++ b/src/Telegram.Bot/Types/MessageReactionCountUpdated.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents reaction changes on a message with anonymous reactions. public partial class MessageReactionCountUpdated diff --git a/src/Telegram.Bot/Types/MessageReactionUpdated.cs b/src/Telegram.Bot/Types/MessageReactionUpdated.cs index bb78c484d..01c349408 100644 --- a/src/Telegram.Bot/Types/MessageReactionUpdated.cs +++ b/src/Telegram.Bot/Types/MessageReactionUpdated.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a change of a reaction on a message performed by a user. public partial class MessageReactionUpdated diff --git a/src/Telegram.Bot/Types/PaidMedia.cs b/src/Telegram.Bot/Types/PaidMedia.cs index bfac5321f..b547d9374 100644 --- a/src/Telegram.Bot/Types/PaidMedia.cs +++ b/src/Telegram.Bot/Types/PaidMedia.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes paid media. Currently, it can be one of
, ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/PaidMediaInfo.cs b/src/Telegram.Bot/Types/PaidMediaInfo.cs index 1c3f89ca2..68e3ec08c 100644 --- a/src/Telegram.Bot/Types/PaidMediaInfo.cs +++ b/src/Telegram.Bot/Types/PaidMediaInfo.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes the paid media added to a message. public partial class PaidMediaInfo diff --git a/src/Telegram.Bot/Types/Passport/EncryptedCredentials.cs b/src/Telegram.Bot/Types/Passport/EncryptedCredentials.cs index dfedf5172..f152a2ab1 100644 --- a/src/Telegram.Bot/Types/Passport/EncryptedCredentials.cs +++ b/src/Telegram.Bot/Types/Passport/EncryptedCredentials.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Passport; +namespace Telegram.Bot.Types.Passport; /// Describes data required for decrypting and authenticating . See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes. public partial class EncryptedCredentials diff --git a/src/Telegram.Bot/Types/Passport/EncryptedPassportElement.cs b/src/Telegram.Bot/Types/Passport/EncryptedPassportElement.cs index f4b90c474..b458077e1 100644 --- a/src/Telegram.Bot/Types/Passport/EncryptedPassportElement.cs +++ b/src/Telegram.Bot/Types/Passport/EncryptedPassportElement.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Passport; +namespace Telegram.Bot.Types.Passport; /// Describes documents or other Telegram Passport elements shared with the bot by the user. public partial class EncryptedPassportElement diff --git a/src/Telegram.Bot/Types/Passport/EncryptedPassportElementType.cs b/src/Telegram.Bot/Types/Passport/EncryptedPassportElementType.cs index 6f29301b6..468c4bc09 100644 --- a/src/Telegram.Bot/Types/Passport/EncryptedPassportElementType.cs +++ b/src/Telegram.Bot/Types/Passport/EncryptedPassportElementType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Passport; +namespace Telegram.Bot.Types.Passport; /// : Element type. One of PersonalDetails, Passport, DriverLicense, IdentityCard, InternalPassport, Address, UtilityBill, BankStatement, RentalAgreement, PassportRegistration, TemporaryRegistration, PhoneNumber, Email. [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Passport/PassportData.cs b/src/Telegram.Bot/Types/Passport/PassportData.cs index 0c2e42af7..23a76ed9f 100644 --- a/src/Telegram.Bot/Types/Passport/PassportData.cs +++ b/src/Telegram.Bot/Types/Passport/PassportData.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Passport; +namespace Telegram.Bot.Types.Passport; /// Describes Telegram Passport data shared with the bot by the user. public partial class PassportData diff --git a/src/Telegram.Bot/Types/Passport/PassportElementError.cs b/src/Telegram.Bot/Types/Passport/PassportElementError.cs index a2b4c1186..268807e24 100644 --- a/src/Telegram.Bot/Types/Passport/PassportElementError.cs +++ b/src/Telegram.Bot/Types/Passport/PassportElementError.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Passport; +namespace Telegram.Bot.Types.Passport; /// This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:
, , , , , , , ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/Passport/PassportElementErrorSource.cs b/src/Telegram.Bot/Types/Passport/PassportElementErrorSource.cs index f3aaa9b65..684a6fa96 100644 --- a/src/Telegram.Bot/Types/Passport/PassportElementErrorSource.cs +++ b/src/Telegram.Bot/Types/Passport/PassportElementErrorSource.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Passport; +namespace Telegram.Bot.Types.Passport; /// Error source [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Passport/PassportFile.cs b/src/Telegram.Bot/Types/Passport/PassportFile.cs index 57b743cf2..116afd7b1 100644 --- a/src/Telegram.Bot/Types/Passport/PassportFile.cs +++ b/src/Telegram.Bot/Types/Passport/PassportFile.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Passport; +namespace Telegram.Bot.Types.Passport; /// This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB. public partial class PassportFile : FileBase diff --git a/src/Telegram.Bot/Types/Payments/Invoice.cs b/src/Telegram.Bot/Types/Payments/Invoice.cs index ed8382573..c29ad3f9e 100644 --- a/src/Telegram.Bot/Types/Payments/Invoice.cs +++ b/src/Telegram.Bot/Types/Payments/Invoice.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object contains basic information about an invoice. public partial class Invoice diff --git a/src/Telegram.Bot/Types/Payments/LabeledPrice.cs b/src/Telegram.Bot/Types/Payments/LabeledPrice.cs index 66540a054..592aecff9 100644 --- a/src/Telegram.Bot/Types/Payments/LabeledPrice.cs +++ b/src/Telegram.Bot/Types/Payments/LabeledPrice.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object represents a portion of the price for goods or services. public partial class LabeledPrice diff --git a/src/Telegram.Bot/Types/Payments/OrderInfo.cs b/src/Telegram.Bot/Types/Payments/OrderInfo.cs index 4912fb548..81db846d1 100644 --- a/src/Telegram.Bot/Types/Payments/OrderInfo.cs +++ b/src/Telegram.Bot/Types/Payments/OrderInfo.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object represents information about an order. public partial class OrderInfo diff --git a/src/Telegram.Bot/Types/Payments/PaidMediaPurchased.cs b/src/Telegram.Bot/Types/Payments/PaidMediaPurchased.cs index fc95ffb85..af45b16ad 100644 --- a/src/Telegram.Bot/Types/Payments/PaidMediaPurchased.cs +++ b/src/Telegram.Bot/Types/Payments/PaidMediaPurchased.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object contains information about a paid media purchase. public partial class PaidMediaPurchased diff --git a/src/Telegram.Bot/Types/Payments/PreCheckoutQuery.cs b/src/Telegram.Bot/Types/Payments/PreCheckoutQuery.cs index 1decf097e..690505ba9 100644 --- a/src/Telegram.Bot/Types/Payments/PreCheckoutQuery.cs +++ b/src/Telegram.Bot/Types/Payments/PreCheckoutQuery.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object contains information about an incoming pre-checkout query. public partial class PreCheckoutQuery diff --git a/src/Telegram.Bot/Types/Payments/RefundedPayment.cs b/src/Telegram.Bot/Types/Payments/RefundedPayment.cs index 8357a4b88..5e1ad39be 100644 --- a/src/Telegram.Bot/Types/Payments/RefundedPayment.cs +++ b/src/Telegram.Bot/Types/Payments/RefundedPayment.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object contains basic information about a refunded payment. public partial class RefundedPayment diff --git a/src/Telegram.Bot/Types/Payments/RevenueWithdrawalState.cs b/src/Telegram.Bot/Types/Payments/RevenueWithdrawalState.cs index 7fa0fad5f..9335364f5 100644 --- a/src/Telegram.Bot/Types/Payments/RevenueWithdrawalState.cs +++ b/src/Telegram.Bot/Types/Payments/RevenueWithdrawalState.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object describes the state of a revenue withdrawal operation. Currently, it can be one of
, ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/Payments/RevenueWithdrawalStateType.cs b/src/Telegram.Bot/Types/Payments/RevenueWithdrawalStateType.cs index e80397ed8..b3222ecb4 100644 --- a/src/Telegram.Bot/Types/Payments/RevenueWithdrawalStateType.cs +++ b/src/Telegram.Bot/Types/Payments/RevenueWithdrawalStateType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// Type of the state, always [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/Payments/ShippingAddress.cs b/src/Telegram.Bot/Types/Payments/ShippingAddress.cs index 079b09c0d..88be16d2b 100644 --- a/src/Telegram.Bot/Types/Payments/ShippingAddress.cs +++ b/src/Telegram.Bot/Types/Payments/ShippingAddress.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object represents a shipping address. public partial class ShippingAddress diff --git a/src/Telegram.Bot/Types/Payments/ShippingOption.cs b/src/Telegram.Bot/Types/Payments/ShippingOption.cs index 252e132d8..cea2967cb 100644 --- a/src/Telegram.Bot/Types/Payments/ShippingOption.cs +++ b/src/Telegram.Bot/Types/Payments/ShippingOption.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object represents one shipping option. public partial class ShippingOption diff --git a/src/Telegram.Bot/Types/Payments/ShippingQuery.cs b/src/Telegram.Bot/Types/Payments/ShippingQuery.cs index a0ce7c632..e07984ab1 100644 --- a/src/Telegram.Bot/Types/Payments/ShippingQuery.cs +++ b/src/Telegram.Bot/Types/Payments/ShippingQuery.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object contains information about an incoming shipping query. public partial class ShippingQuery diff --git a/src/Telegram.Bot/Types/Payments/StarTransaction.cs b/src/Telegram.Bot/Types/Payments/StarTransaction.cs index aa75ab58c..0da4ade09 100644 --- a/src/Telegram.Bot/Types/Payments/StarTransaction.cs +++ b/src/Telegram.Bot/Types/Payments/StarTransaction.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// Describes a Telegram Star transaction. public partial class StarTransaction diff --git a/src/Telegram.Bot/Types/Payments/StarTransactions.cs b/src/Telegram.Bot/Types/Payments/StarTransactions.cs index ba82cd825..8618335a7 100644 --- a/src/Telegram.Bot/Types/Payments/StarTransactions.cs +++ b/src/Telegram.Bot/Types/Payments/StarTransactions.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// Contains a list of Telegram Star transactions. public partial class StarTransactions diff --git a/src/Telegram.Bot/Types/Payments/SuccessfulPayment.cs b/src/Telegram.Bot/Types/Payments/SuccessfulPayment.cs index f23d95554..3f908182c 100644 --- a/src/Telegram.Bot/Types/Payments/SuccessfulPayment.cs +++ b/src/Telegram.Bot/Types/Payments/SuccessfulPayment.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object contains basic information about a successful payment. public partial class SuccessfulPayment diff --git a/src/Telegram.Bot/Types/Payments/TransactionPartner.cs b/src/Telegram.Bot/Types/Payments/TransactionPartner.cs index 221088c47..63a10932d 100644 --- a/src/Telegram.Bot/Types/Payments/TransactionPartner.cs +++ b/src/Telegram.Bot/Types/Payments/TransactionPartner.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of
, , , ,
[JsonConverter(typeof(PolymorphicJsonConverter))] @@ -38,7 +38,7 @@ public partial class TransactionPartnerUser : TransactionPartner public string? PaidMediaPayload { get; set; } /// Optional. The gift sent to the user by the bot - public string? Gift { get; set; } + public Gift? Gift { get; set; } } /// Describes a withdrawal transaction with Fragment. diff --git a/src/Telegram.Bot/Types/Payments/TransactionPartnerType.cs b/src/Telegram.Bot/Types/Payments/TransactionPartnerType.cs index 8ae20f068..5cca24d14 100644 --- a/src/Telegram.Bot/Types/Payments/TransactionPartnerType.cs +++ b/src/Telegram.Bot/Types/Payments/TransactionPartnerType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.Payments; +namespace Telegram.Bot.Types.Payments; /// Type of the transaction partner [JsonConverter(typeof(EnumConverter))] diff --git a/src/Telegram.Bot/Types/PhotoSize.cs b/src/Telegram.Bot/Types/PhotoSize.cs index 673619932..77873e8e8 100644 --- a/src/Telegram.Bot/Types/PhotoSize.cs +++ b/src/Telegram.Bot/Types/PhotoSize.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents one size of a photo or a file / thumbnail. public partial class PhotoSize : FileBase diff --git a/src/Telegram.Bot/Types/Poll.cs b/src/Telegram.Bot/Types/Poll.cs index f8fa2714e..97673a576 100644 --- a/src/Telegram.Bot/Types/Poll.cs +++ b/src/Telegram.Bot/Types/Poll.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about a poll. public partial class Poll diff --git a/src/Telegram.Bot/Types/PollAnswer.cs b/src/Telegram.Bot/Types/PollAnswer.cs index dd316d602..5cce95516 100644 --- a/src/Telegram.Bot/Types/PollAnswer.cs +++ b/src/Telegram.Bot/Types/PollAnswer.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an answer of a user in a non-anonymous poll. public partial class PollAnswer diff --git a/src/Telegram.Bot/Types/PollOption.cs b/src/Telegram.Bot/Types/PollOption.cs index c29558af2..d48eed7b4 100644 --- a/src/Telegram.Bot/Types/PollOption.cs +++ b/src/Telegram.Bot/Types/PollOption.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about one answer option in a poll. public partial class PollOption diff --git a/src/Telegram.Bot/Types/PreparedInlineMessage.cs b/src/Telegram.Bot/Types/PreparedInlineMessage.cs index d8680e572..aa8601025 100644 --- a/src/Telegram.Bot/Types/PreparedInlineMessage.cs +++ b/src/Telegram.Bot/Types/PreparedInlineMessage.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes an inline message to be sent by a user of a Mini App. public partial class PreparedInlineMessage diff --git a/src/Telegram.Bot/Types/ProximityAlertTriggered.cs b/src/Telegram.Bot/Types/ProximityAlertTriggered.cs index 3e2d067fe..1ccb77ae8 100644 --- a/src/Telegram.Bot/Types/ProximityAlertTriggered.cs +++ b/src/Telegram.Bot/Types/ProximityAlertTriggered.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. public partial class ProximityAlertTriggered diff --git a/src/Telegram.Bot/Types/ReactionCount.cs b/src/Telegram.Bot/Types/ReactionCount.cs index 6e175eec2..2f1fa2220 100644 --- a/src/Telegram.Bot/Types/ReactionCount.cs +++ b/src/Telegram.Bot/Types/ReactionCount.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Represents a reaction added to a message along with the number of times it was added. public partial class ReactionCount diff --git a/src/Telegram.Bot/Types/ReactionType.cs b/src/Telegram.Bot/Types/ReactionType.cs index 38d3ca72d..b02443813 100644 --- a/src/Telegram.Bot/Types/ReactionType.cs +++ b/src/Telegram.Bot/Types/ReactionType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object describes the type of a reaction. Currently, it can be one of
, ,
[JsonConverter(typeof(PolymorphicJsonConverter))] diff --git a/src/Telegram.Bot/Types/ReplyMarkups/ForceReplyMarkup.cs b/src/Telegram.Bot/Types/ReplyMarkups/ForceReplyMarkup.cs index db1b2d595..ea0637ec7 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/ForceReplyMarkup.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/ForceReplyMarkup.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Not supported in channels and for messages sent on behalf of a Telegram Business account. ///

Example: A poll bot for groups runs in privacy mode (only receives commands, replies to its messages and mentions). There could be two ways to create a new poll:

  • Explain the user how to send a command with parameters (e.g. /newpoll question answer1 answer2). May be appealing for hardcore users but lacks modern day polish.
  • Guide the user through a step-by-step process. 'Please send me your question', 'Cool, now let's add the first answer option', 'Great. Keep adding answer options, then send /done when you're ready'.

The last option is definitely more attractive. And if you use ForceReply in your bot's questions, it will receive the user's answers even if it only receives replies, commands and mentions - without any extra work for the user.

diff --git a/src/Telegram.Bot/Types/ReplyMarkups/InlineKeyboardButton.cs b/src/Telegram.Bot/Types/ReplyMarkups/InlineKeyboardButton.cs index 2c7f71cf7..3f58e266b 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/InlineKeyboardButton.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/InlineKeyboardButton.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// This object represents one button of an inline keyboard. Exactly one of the optional fields must be used to specify type of the button. public partial class InlineKeyboardButton : IKeyboardButton diff --git a/src/Telegram.Bot/Types/ReplyMarkups/InlineKeyboardMarkup.cs b/src/Telegram.Bot/Types/ReplyMarkups/InlineKeyboardMarkup.cs index 3c3f66dc1..e96b2a8ef 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/InlineKeyboardMarkup.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/InlineKeyboardMarkup.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// This object represents an inline keyboard that appears right next to the message it belongs to. public partial class InlineKeyboardMarkup : IReplyMarkup diff --git a/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButton.cs b/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButton.cs index a081d3fe6..5939afec0 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButton.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButton.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// This object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, String can be used instead of this object to specify the button text.
Note: RequestUsers and RequestChat options will only work in Telegram versions released after 3 February, 2023. Older clients will display unsupported message.
public partial class KeyboardButton : IKeyboardButton diff --git a/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonPollType.cs b/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonPollType.cs index ddc3feaeb..5f8d1ea71 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonPollType.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonPollType.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed. public partial class KeyboardButtonPollType diff --git a/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonRequestChat.cs b/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonRequestChat.cs index 657fe59b1..ca1e31b3e 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonRequestChat.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonRequestChat.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. More about requesting chats ». public partial class KeyboardButtonRequestChat diff --git a/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonRequestUsers.cs b/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonRequestUsers.cs index b032d8231..60044c6cf 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonRequestUsers.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/KeyboardButtonRequestUsers.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. More about requesting users » public partial class KeyboardButtonRequestUsers diff --git a/src/Telegram.Bot/Types/ReplyMarkups/ReplyKeyboardMarkup.cs b/src/Telegram.Bot/Types/ReplyMarkups/ReplyKeyboardMarkup.cs index 4767ede2e..5a2d37861 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/ReplyKeyboardMarkup.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/ReplyKeyboardMarkup.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). Not supported in channels and for messages sent on behalf of a Telegram Business account. public partial class ReplyKeyboardMarkup : IReplyMarkup diff --git a/src/Telegram.Bot/Types/ReplyMarkups/ReplyKeyboardRemove.cs b/src/Telegram.Bot/Types/ReplyMarkups/ReplyKeyboardRemove.cs index 4353c71d6..1f157a8f7 100644 --- a/src/Telegram.Bot/Types/ReplyMarkups/ReplyKeyboardRemove.cs +++ b/src/Telegram.Bot/Types/ReplyMarkups/ReplyKeyboardRemove.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types.ReplyMarkups; +namespace Telegram.Bot.Types.ReplyMarkups; /// Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ). Not supported in channels and for messages sent on behalf of a Telegram Business account. public partial class ReplyKeyboardRemove : IReplyMarkup diff --git a/src/Telegram.Bot/Types/ReplyParameters.cs b/src/Telegram.Bot/Types/ReplyParameters.cs index 1fc9a2c1d..a74ef9823 100644 --- a/src/Telegram.Bot/Types/ReplyParameters.cs +++ b/src/Telegram.Bot/Types/ReplyParameters.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes reply parameters for the message that is being sent. public partial class ReplyParameters diff --git a/src/Telegram.Bot/Types/ResponseParameters.cs b/src/Telegram.Bot/Types/ResponseParameters.cs index 39d29ba13..b5a233b93 100644 --- a/src/Telegram.Bot/Types/ResponseParameters.cs +++ b/src/Telegram.Bot/Types/ResponseParameters.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes why a request was unsuccessful. public partial class ResponseParameters diff --git a/src/Telegram.Bot/Types/SentWebAppMessage.cs b/src/Telegram.Bot/Types/SentWebAppMessage.cs index e1b9738d1..4c47edcb3 100644 --- a/src/Telegram.Bot/Types/SentWebAppMessage.cs +++ b/src/Telegram.Bot/Types/SentWebAppMessage.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes an inline message sent by a Web App on behalf of a user. public partial class SentWebAppMessage diff --git a/src/Telegram.Bot/Types/SharedUser.cs b/src/Telegram.Bot/Types/SharedUser.cs index 5d930980b..c0a399ef2 100644 --- a/src/Telegram.Bot/Types/SharedUser.cs +++ b/src/Telegram.Bot/Types/SharedUser.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about a user that was shared with the bot using a button. public partial class SharedUser diff --git a/src/Telegram.Bot/Types/Sticker.cs b/src/Telegram.Bot/Types/Sticker.cs index cb10c92be..2b7d3ca07 100644 --- a/src/Telegram.Bot/Types/Sticker.cs +++ b/src/Telegram.Bot/Types/Sticker.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a sticker. public partial class Sticker : FileBase diff --git a/src/Telegram.Bot/Types/StickerSet.cs b/src/Telegram.Bot/Types/StickerSet.cs index 3c3c10b9c..959781c9f 100644 --- a/src/Telegram.Bot/Types/StickerSet.cs +++ b/src/Telegram.Bot/Types/StickerSet.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a sticker set. public partial class StickerSet diff --git a/src/Telegram.Bot/Types/Story.cs b/src/Telegram.Bot/Types/Story.cs index 2c1098fb3..2f49e805c 100644 --- a/src/Telegram.Bot/Types/Story.cs +++ b/src/Telegram.Bot/Types/Story.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a story. public partial class Story diff --git a/src/Telegram.Bot/Types/SwitchInlineQueryChosenChat.cs b/src/Telegram.Bot/Types/SwitchInlineQueryChosenChat.cs index 50cbd00f0..c492f7799 100644 --- a/src/Telegram.Bot/Types/SwitchInlineQueryChosenChat.cs +++ b/src/Telegram.Bot/Types/SwitchInlineQueryChosenChat.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query. public partial class SwitchInlineQueryChosenChat diff --git a/src/Telegram.Bot/Types/TextQuote.cs b/src/Telegram.Bot/Types/TextQuote.cs index a4da0eeb4..515de7bfe 100644 --- a/src/Telegram.Bot/Types/TextQuote.cs +++ b/src/Telegram.Bot/Types/TextQuote.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about the quoted part of a message that is replied to by the given message. public partial class TextQuote diff --git a/src/Telegram.Bot/Types/Update.cs b/src/Telegram.Bot/Types/Update.cs index 0720dccbe..249bd405e 100644 --- a/src/Telegram.Bot/Types/Update.cs +++ b/src/Telegram.Bot/Types/Update.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents an incoming update.
At most one of the optional parameters can be present in any given update.
public partial class Update diff --git a/src/Telegram.Bot/Types/User.cs b/src/Telegram.Bot/Types/User.cs index d44fcd86d..6d42c7a3d 100644 --- a/src/Telegram.Bot/Types/User.cs +++ b/src/Telegram.Bot/Types/User.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a Telegram user or bot. public partial class User diff --git a/src/Telegram.Bot/Types/UserChatBoosts.cs b/src/Telegram.Bot/Types/UserChatBoosts.cs index 0bf66724f..d049b1cf6 100644 --- a/src/Telegram.Bot/Types/UserChatBoosts.cs +++ b/src/Telegram.Bot/Types/UserChatBoosts.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a list of boosts added to a chat by a user. public partial class UserChatBoosts diff --git a/src/Telegram.Bot/Types/UserProfilePhotos.cs b/src/Telegram.Bot/Types/UserProfilePhotos.cs index 352ce5b0f..fc7b08e6d 100644 --- a/src/Telegram.Bot/Types/UserProfilePhotos.cs +++ b/src/Telegram.Bot/Types/UserProfilePhotos.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represent a user's profile pictures. public partial class UserProfilePhotos diff --git a/src/Telegram.Bot/Types/UsersShared.cs b/src/Telegram.Bot/Types/UsersShared.cs index 5935f89d7..d07b2c6c2 100644 --- a/src/Telegram.Bot/Types/UsersShared.cs +++ b/src/Telegram.Bot/Types/UsersShared.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object contains information about the users whose identifiers were shared with the bot using a button. public partial class UsersShared diff --git a/src/Telegram.Bot/Types/Venue.cs b/src/Telegram.Bot/Types/Venue.cs index 3af390a56..a25bc5f55 100644 --- a/src/Telegram.Bot/Types/Venue.cs +++ b/src/Telegram.Bot/Types/Venue.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a venue. public partial class Venue diff --git a/src/Telegram.Bot/Types/Video.cs b/src/Telegram.Bot/Types/Video.cs index 253e0321a..b2bbd65d5 100644 --- a/src/Telegram.Bot/Types/Video.cs +++ b/src/Telegram.Bot/Types/Video.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a video file. public partial class Video : FileBase diff --git a/src/Telegram.Bot/Types/VideoChatEnded.cs b/src/Telegram.Bot/Types/VideoChatEnded.cs index 3b1afd9f5..23061de89 100644 --- a/src/Telegram.Bot/Types/VideoChatEnded.cs +++ b/src/Telegram.Bot/Types/VideoChatEnded.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a video chat ended in the chat. public partial class VideoChatEnded diff --git a/src/Telegram.Bot/Types/VideoChatParticipantsInvited.cs b/src/Telegram.Bot/Types/VideoChatParticipantsInvited.cs index a18860e51..a4bb857f7 100644 --- a/src/Telegram.Bot/Types/VideoChatParticipantsInvited.cs +++ b/src/Telegram.Bot/Types/VideoChatParticipantsInvited.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about new members invited to a video chat. public partial class VideoChatParticipantsInvited diff --git a/src/Telegram.Bot/Types/VideoChatScheduled.cs b/src/Telegram.Bot/Types/VideoChatScheduled.cs index 3eccc455f..21fb23e71 100644 --- a/src/Telegram.Bot/Types/VideoChatScheduled.cs +++ b/src/Telegram.Bot/Types/VideoChatScheduled.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a video chat scheduled in the chat. public partial class VideoChatScheduled diff --git a/src/Telegram.Bot/Types/VideoChatStarted.cs b/src/Telegram.Bot/Types/VideoChatStarted.cs index a4fc08f65..4f3c711fc 100644 --- a/src/Telegram.Bot/Types/VideoChatStarted.cs +++ b/src/Telegram.Bot/Types/VideoChatStarted.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a video chat started in the chat. Currently holds no information. public partial class VideoChatStarted; diff --git a/src/Telegram.Bot/Types/VideoNote.cs b/src/Telegram.Bot/Types/VideoNote.cs index 6c7860354..b7866e6b1 100644 --- a/src/Telegram.Bot/Types/VideoNote.cs +++ b/src/Telegram.Bot/Types/VideoNote.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a video message (available in Telegram apps as of v.4.0). public partial class VideoNote : FileBase diff --git a/src/Telegram.Bot/Types/Voice.cs b/src/Telegram.Bot/Types/Voice.cs index 317eee72b..b5a043d0e 100644 --- a/src/Telegram.Bot/Types/Voice.cs +++ b/src/Telegram.Bot/Types/Voice.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a voice note. public partial class Voice : FileBase diff --git a/src/Telegram.Bot/Types/WebAppData.cs b/src/Telegram.Bot/Types/WebAppData.cs index 39e38ae69..b4982af21 100644 --- a/src/Telegram.Bot/Types/WebAppData.cs +++ b/src/Telegram.Bot/Types/WebAppData.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes data sent from a Web App to the bot. public partial class WebAppData diff --git a/src/Telegram.Bot/Types/WebAppInfo.cs b/src/Telegram.Bot/Types/WebAppInfo.cs index ea848263f..f100e22c4 100644 --- a/src/Telegram.Bot/Types/WebAppInfo.cs +++ b/src/Telegram.Bot/Types/WebAppInfo.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes a Web App. public partial class WebAppInfo diff --git a/src/Telegram.Bot/Types/WebhookInfo.cs b/src/Telegram.Bot/Types/WebhookInfo.cs index 94cdc5c95..f66374b24 100644 --- a/src/Telegram.Bot/Types/WebhookInfo.cs +++ b/src/Telegram.Bot/Types/WebhookInfo.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// Describes the current status of a webhook. public partial class WebhookInfo diff --git a/src/Telegram.Bot/Types/WriteAccessAllowed.cs b/src/Telegram.Bot/Types/WriteAccessAllowed.cs index 3fd456644..f0fee3bcd 100644 --- a/src/Telegram.Bot/Types/WriteAccessAllowed.cs +++ b/src/Telegram.Bot/Types/WriteAccessAllowed.cs @@ -1,4 +1,4 @@ -namespace Telegram.Bot.Types; +namespace Telegram.Bot.Types; /// This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess. public partial class WriteAccessAllowed diff --git a/test/Telegram.Bot.Tests.Integ/Stickers/StickersTests.cs b/test/Telegram.Bot.Tests.Integ/Stickers/StickersTests.cs index 23c36b484..47628119e 100644 --- a/test/Telegram.Bot.Tests.Integ/Stickers/StickersTests.cs +++ b/test/Telegram.Bot.Tests.Integ/Stickers/StickersTests.cs @@ -349,7 +349,7 @@ await BotClient.WithStreams(stream).AddStickerToSet( sticker: inputSticker ); - await Task.Delay(2_000); + await Task.Delay(3_000); StickerSet stickerSet = await BotClient.GetStickerSet( name: classFixture.TestStaticRegularStickerSetName @@ -521,7 +521,7 @@ await BotClient.SetStickerEmojiList( emojiList: classFixture.FirstEmojis ); - await Task.Delay(1_000); + await Task.Delay(2_000); StickerSet updatedStickerSet = await BotClient.GetStickerSet( name: classFixture.TestStaticRegularStickerSetName @@ -576,7 +576,7 @@ await BotClient.SetStickerSetTitle( title: newStickerSetTitle ); - await Task.Delay(2_000); + await Task.Delay(3_000); StickerSet stickerSet = await BotClient.GetStickerSet( name: classFixture.TestStaticRegularStickerSetName @@ -1031,7 +1031,7 @@ await BotClient.WithStreams(stream).AddStickerToSet( sticker: inputSticker ); - await Task.Delay(2_000); + await Task.Delay(3_000); StickerSet stickerSet = await BotClient.GetStickerSet( name: classFixture.TestStaticCustomEmojiStickerSetName