Telegram.Bot v14.0.0-alpha0 Release Notes

Release Date: 2017-12-31 // over 6 years ago
  • โž• Added

    • Request classes
      • Type GetUpdatesRequest
      • Type SetWebhookRequest
      • Type DeleteWebhookRequest
      • Type GetWebhookInfoRequest
      • Type GetMeRequest
      • Type SendMessageRequest
      • Type ForwardMessageRequest
      • Type SendPhotoRequest
      • Type SendAudioRequest
      • Type SendDocumentRequest
      • Type SendVideoRequest
      • Type SendVoiceRequest
      • Type SendVideoNoteRequest
      • Type SendLocationRequest
      • Type EditMessageLiveLocationRequest
      • Type EditInlineMessageLiveLocationRequest
      • Type StopMessageLiveLocationRequest
      • Type StopInlineMessageLiveLocationRequest
      • Type SendVenueRequest
      • Type SendContactRequest
      • Type SendChatActionRequest
      • Type GetUserProfilePicturesRequest
      • Type KickChatMemberRequest
      • Type UnbanChatmemberRequest
      • Type RestrictChatMemberRequest
      • Type PromoteChatMemberRequest
      • Type ExportChatInviteLinkRequest
      • Type SetChatPhotoRequest
      • Type DeleteChatPhotoRequest
      • Type SetChatTitleRequest
      • Type SetChatDescriptionRequest
      • Type PinChatMessageRequest
      • Type UnpinChatMessageRequest
      • Type LeaveChatRequest
      • Type GetChatRequest
      • Type GetChatAdministratorsRequest
      • Type GetChatMembersCountRequest
      • Type GetChatMemberRequest
      • Type SetChatStickerSetRequest
      • Type DeleteChatStickerSetRequest
      • Type AnswerCallbackQueryRequest
      • Type EditMessageTextRequest
      • Type EditInlineMessageTextRequest
      • Type EditMessageCaptionRequest
      • Type EditInlineMessageCaptionRequest
      • Type EditMessageReplyMarkupRequest
      • Type EditInlineMessageReplyMarkupRequest
      • Type DeleteMessageRequest
      • Type SendStickerRequest
      • Type GetStickerSetRequest
      • Type SetStickerPositionInSetRequest
      • Type AnswerInlineQueryRequest
      • Type DeleteStickerFromSetRequest
      • Type AddStickerToSetRequest
      • Type CreateNewStickerSetRequest
      • Type SendInvoiceRequest
      • Type AnswerShippingQueryRequest
      • Type AnswerPreCheckoutQueryRequest
      • Type SendGameRequest
      • Type SetGameScoreRequest
      • Type SetInlineGameScoreRequest
      • Type GetGameHighScoresRequest
      • Type GetInlineGameHighScoresRequest
      • Type GetFileRequest
      • Type FileRequestBase
      • Type UploadStickerFileRequest
      • Type INotifiableMessage
      • Type IReplyMessage
      • Type IFormattableMessage
      • Type IInlineMessage
      • Type IReplyMarkupMessage
      • Type IInlineReplyMarkupMessage
    • Type IInputFile
    • Type InputFileStream
    • Type InputTelegramFile
    • Type InputOnlineFile
    • Type InputFileConverter

    ๐Ÿ”„ Changed

    • โšก๏ธ Type of parameter allowedUpdates in method SetWebhookAsync changed to IEnumerable<UpdateType>
    • โšก๏ธ Type of parameter allowedUpdates in method GetUpdatesAsync changed to IEnumerable<UpdateType>
    • Type of parameter offset in method GetUserProfilePhotosAsync changed to int
    • Type of parameter replyMarkup in methods EditMessageLiveLocationAsync changed to InlineKeyboardMarkup
    • Type of parameter replyMarkup in methods StopMessageLiveLocationAsync changed to InlineKeyboardMarkup
    • Type of parameter replyMarkup in method EditMessageTextAsync changed to InlineKeyboardMarkup
    • Type of parameter replyMarkup in method EditMessageCaptionAsync changed to InlineKeyboardMarkup
    • Type of parameter replyMarkup in method EditMessageReplyMarkupAsync changed to InlineKeyboardMarkup
    • Type of parameter replyMarkup in method SendGameAsync changed to InlineKeyboardMarkup
    • Type of parameter replyMarkup in method SendInvoiceAsync changed to InlineKeyboardMarkup
    • Type of parameter prices in method SendInvoiceAsync changed to IEnumerable<LabeledPrice>
    • Type of parameter shippingOptions in method AnswerShippingQueryAsync changed to IEnumerable<ShippingOption>
    • Type of parameter chatId in method SendInvoiceAsync changed to int
    • Type of parameter chatId in method SendGameAsync changed to long
    • Type of parameter chatId in methods SetGameScoreAsync changed to long
    • Type of parameter chatId in methods GetGameHighScoresAsync changed to long
    • Type parameter of type SendMediaGroupRequest changed to Message[]
    • โœ… Return type of method GetChatIdFromTesterAsync in TestFixture changed to Task<long>
    • โœ… Type of property TesterPrivateChatId on type PaymentTestsFixture changed to long
    • Replace method EditInlineMessageTextAsync with overload for EditMessageTextAsync
    • Replace method EditInlineMessageCaptionAsync with overload for EditMessageCaptionAsync
    • Replace method EditInlineMessageReplyMarkupAsync with overload for EditMessageReplyMarkupAsync
    • Reorder parameters of method SendInvoiceAsync
    • Divide AnswerShippingQueryAsync method into two overloads
    • Divide AnswerPreCheckoutQueryAsync method into two overloads
    • Method CreateNewStickerSetAsnyc renamed to CreateNewStickerSetAsync
    • Method return type changed from Task<bool> to Task:
      • Method DeleteWebhookAsync
      • Method KickChatMemberAsync
      • Method LeaveChatAsync
      • Method UnbanChatMemberAsync
      • Method AnswerCallbackQueryAsync
      • Method RestrictChatMemberAsync
      • Method PromoteChatMemberAsync
      • Method StopMessageLiveLocationAsync
      • Method EditMessageTextAsync
      • Method EditMessageCaptionAsync
      • Method EditMessageReplyMarkupAsync
      • Method EditMessageLiveLocationAsync
      • Method DeleteMessageAsync
      • Method AnswerInlineQueryAsync
      • Method AnswerShippingQueryAsync
      • Method AnswerPreCheckoutQueryAsync
      • Method SetGameScoreAsync
      • Method CreateNewStickerSetAsync
      • Method AddStickerToSetAsync
      • Method SetStickerPositionInSetAsync
      • Method DeleteStickerFromSetAsync
      • Method SetChatPhotoAsync
      • Method DeleteChatPhotoAsync
      • Method SetChatTitleAsync
      • Method SetChatDescriptionAsync
      • Method PinChatMessageAsync
      • Method UnpinChatMessageAsync
      • Method SetChatStickerSetAsync
      • Method DeleteChatStickerSetAsync
    • Type of StickerSet.Stickers from List<Sticker> to Sticker[]
    • Type of ChatMember properties to nullable e.g. bool to bool?
    • Type of Message.Entities from List<MessageEntity> to MessageEntity[]
    • Type of Message.CaptionEntities from List<MessageEntity> to MessageEntity[]
    • Type of Message.EntityValues from List<string> to IEnumerable<string>
    • Type InputMediaType to InputMedia
    • Type InputMediaTypeConverter to InputMediaConverter
    • ๐Ÿ”„ Changed member type from FileToSend to an implementation of IInputFile
      • Parameter certificate of method SetWebhookAsync
      • Parameter photo of method SendPhotoAsync
      • Parameter video of method SendVideoAsync
      • Parameter videoNote of method SendVideoNoteAsync
      • Parameter document of method SendDocumentAsync
      • Parameter sticker of method SendStickerAsync
      • Parameter pngSticker of method UploadStickerFileAsync
      • Parameter pngSticker of method CreateNewStickerSetAsync
      • Parameter pngSticker of method AddStickerToSetAsync
      • Parameter photo of method SetChatPhotoAsync
      • Parameter audio of method SendAudioAsync

    โœ‚ Removed

    • Type FileToSend
    • Interface IResponse
    • Type parameter constraint from interface IRequest
    • Redundant parameter editMessage in methods SetGameScoreAsync
    • ๐Ÿ“œ Redundant custom converter ParseModeConverter
    • โšก๏ธ Value All from UpdateType enum
    • Value Unknown from FileType enum
    • 0๏ธโƒฃ Default value of parameter url of method SetWebhookAsync
    • Property Width of VideoNote
    • Property Height of VideoNote
    • Property Zoom of MaskPosition

    ๐Ÿ›  Fixed

    • Method SetWebhookAsync interface ITelegramBotClient returns bool on success
    • Passing wrong chatId value in method GetGameHighScoresAsync
    • Passing wrong chatId value in method SendGameAsync
    • Passing wrong chatId value in method SendInvoiceAsync
    • Passing wrong replyMarkup value in method SendGameAsync
    • Passing wrong replyMarkup value in method SendInvoiceAsync
    • Passing wrong replyMarkup value in method EditMessageLiveLocationAsync
    • Passing wrong replyMarkup value in method EditMessageReplyMarkupAsync
    • Passing wrong replyMarkup value in method EditMessageCaptionAsync
    • Passing wrong replyMarkup value in method EditMessageTextAsync
    • Passing wrong replyMarkup value in method StopMessageLiveLocationAsync
    • Passing wrong pngSticker value in method UploadStickerFileAsync
    • Passing wrong photo value in method SetChatPhotoAsync
    • Passing wrong certificate value in method SetWebhookAsync
    • Incorrect spelling of the method CreateNewStickerSetAsync
    • โœ… TestApiAsync() throws exception instead of returning false