Telegram.Bot v18.0.0-alpha.1 Release Notes

Release Date: 2022-02-13 // 8 months ago
  • Bot API 5.7 (January 31, 2022)

    Bot API 5.6 (December 30, 2021)

    Bot API 5.5 (December 7, 2021)

    ๐Ÿ”„ Changed

    • ApiRequestEventArgs has full request information

    โž• Added

    • Requests CreateNewVideoStickerSetRequest, AddVideoStickerToSetRequest, BanChatSenderChatRequest, UnbanChatSenderChatRequest
    • Extension methods TelegramBotClientExtensions.CreateNewVideoStickerSetAsync, TelegramBotClientExtensions.AddVideoStickerToSetAsync, TelegramBotClientExtensions.BanChatSenderChatRequestAsync, TelegramBotClientExtensions.UnbanChatSenderChatRequestAsync
    • Property int? MessageAutoDeleteTime to class Chat
    • Property bool? HasPrivateForwards to class Chat
    • Property bool? HasProtectedContent to class Chat
    • Property int? MessageAutoDeleteTime to class Message
    • Property bool? IsAutomaticForward to class Message
    • Property bool? HasProtectedContent to class Message
    • Property bool? ProtectContent to following requests:
      • SendLocationRequest
      • SendVenueRequest
      • CopyMessageRequest
      • ForwardMessageRequest
      • SendAnimationRequest
      • SendAudioRequest
      • SendContactRequest
      • SendDiceRequest
      • SendDocumentRequest
      • SendMediaGroupRequest
      • SendMessageRequest
      • SendPhotoRequest
      • SendPollRequest
      • SendVideoNoteRequest
      • SendVideoRequest
      • SendVoiceRequest
    • Property IsVideo to class Sticker
    • Property IsVideo to class StickerSet
    • 0๏ธโƒฃ Parameter bool? protectContent = default to following methods:
      • TelegramBotExtensions.SendLocationRequestAsync
      • TelegramBotExtensions.SendVenueRequestAsync
      • TelegramBotExtensions.CopyMessageRequestAsync
      • TelegramBotExtensions.ForwardMessageRequestAsync
      • TelegramBotExtensions.SendAnimationRequestAsync
      • TelegramBotExtensions.SendAudioRequestAsync
      • TelegramBotExtensions.SendContactRequestAsync
      • TelegramBotExtensions.SendDiceRequestAsync
      • TelegramBotExtensions.SendDocumentRequestAsync
      • TelegramBotExtensions.SendMediaGroupRequestAsync
      • TelegramBotExtensions.SendMessageRequestAsync
      • TelegramBotExtensions.SendPhotoRequestAsync
      • TelegramBotExtensions.SendPollRequestAsync
      • TelegramBotExtensions.SendVideoNoteRequestAsync
      • TelegramBotExtensions.SendVideoRequestAsync
      • TelegramBotExtensions.SendVoiceRequestAsync
    • Enum member MessageEntityType.Spoiler

    ๐Ÿ”„ Changed

    • Method TelegramBotClient.MakeRequestAsync is made virtual
    • Class CreateNewStickerSetRequest renamed to CreateNewStaticStickerSetRequest
    • Class CreateNewStickerSetRequest is made abstract
    • Class AddStickerToSetRequest renamed to AddStaticStickerToSetRequest
    • Class AddStickerToSetRequest is made abstract
    • Method TelegramBotClientExtensions.AddStickerToSetAsync is renamed to AddStaticStickerToSetAsync
    • Method TelegramBotClientExtensions.CreateNewStaticStickerSetAsync is renamed to CreateNewStaticStickerSetAsync

    ๐Ÿ›  Fixed

    • DeleteWebhookRequest parameters are now properly serializing
    • โž• Added missing json attribute to property ChatInviteLink.Name

    โœ‚ Removed

    • ๐Ÿšš Parameter untilDate is removed from TelegramBotClientExtensions.BanChatSenderChatAsync
    • ๐Ÿšš Property UntilDate is removed from BanChatSenderChatRequest

Previous changes from v17.0.0

    • ๐Ÿš€ v17 release