Telegram.Bot v18.0.0-alpha.1 Release Notes
Release Date: 2022-02-13 // about 1 year 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 classChat
- Property
bool? HasPrivateForwards
to classChat
- Property
bool? HasProtectedContent
to classChat
- Property
int? MessageAutoDeleteTime
to classMessage
- Property
bool? IsAutomaticForward
to classMessage
- Property
bool? HasProtectedContent
to classMessage
- 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 classSticker
- Property
IsVideo
to classStickerSet
- 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 toCreateNewStaticStickerSetRequest
- Class
CreateNewStickerSetRequest
is made abstract - Class
AddStickerToSetRequest
renamed toAddStaticStickerToSetRequest
- Class
AddStickerToSetRequest
is made abstract - Method
TelegramBotClientExtensions.AddStickerToSetAsync
is renamed toAddStaticStickerToSetAsync
- Method
TelegramBotClientExtensions.CreateNewStaticStickerSetAsync
is renamed toCreateNewStaticStickerSetAsync
๐ Fixed
DeleteWebhookRequest
parameters are now properly serializing- โ Added missing json attribute to property
ChatInviteLink.Name
โ Removed
- ๐ Parameter
untilDate
is removed fromTelegramBotClientExtensions.BanChatSenderChatAsync
- ๐ Property
UntilDate
is removed fromBanChatSenderChatRequest
Previous changes from v17.0.0
-
- ๐ v17 release