Telegram.Bot v17.0.0-alpha.1 Release Notes
Release Date: 2021-06-13 // almost 3 years ago-
Bot API 5.3 (June 25, 2021)
โ Added
- Enum
InputMediaType
- Type
BanCommandScope
- 0๏ธโฃ Type
BanCommandScopeDefault
- Type
BanCommandScopeAllPrivateChats
- Type
BanCommandScopeAllGroupChats
- Type
BanCommandScopeAllChatAdministrators
- Type
BanCommandScopeChat
- Type
BanCommandScopeChatAdministrators
- Type
BanCommandScopeChatMember
- Enum
BanCommandScopeType
- Type
ChatMemberOwner
- Type
ChatMemberAdministrator
- Type
ChatMemberMember
- Type
ChatMemberRestricted
- Type
ChatMemberLeft
- Type
ChatMemberBanned
- Request
BanChatMemberRequest
- Request
BanChatMemberRequest
- Request
DeleteMyCommandsRequest
- Request
GetChatMemberCountRequest
- Method
ITelegramBotClient.DeleteMyCommandsAsync
- Method
ITelegramBotClient.BanChatMemberAsync
- Method
ITelegramBotClient.GetChatMemberCountAsync
- Property
BotCommandScope GetMyCommandsRequest.Scope { get; set; }
- Property
string GetMyCommandsRequest.LanguageCode { get; set; }
- Property
BotCommandScope SetMyCommandsRequest.Scope { get; set; }
- Property
string SetMyCommandsRequest.LanguageCode { get; set; }
- Property
IRequest<TResponse>.IsWebhookResponse { get; set; }
- Protected constructor
InputMediaBase
that acceptsInputMedia
- Protected constructor
InputTelegramFile
that acceptsFileType
- Property
string ForceReplyMarkup.InputFieldPlaceholder { get; set; }
- Property
string ReplyKeyboardMarkup.InputFieldPlaceholder { get; set; }
- Enum
EncryptedPassportElementType
- Interface
IChatTargetable
- Interface
IUserTargetable
๐ Changed
- Type
InlineQueryResultBase
renamed toInlineQueryResult
- Type
ChatMember
is made abstract - Property
ChatMember.Status
is made abstract - 0๏ธโฃ Every use of enum
ParseMode
is made nullable to represent default text mode without any markup - Type
KickChatMemberRequest
is marked as obsolete - Type
GetChatMembersCountRequest
is marked as obsolete - Method
ITelegramBotClient.KickChatMemberAsync
is marked as obsolete - Method
ITelegramBotClient.GetChatMembersCountAsync
is marked as obsolete - All underlying enum values changed to start from
1
instead of0
.0
value are reserved for unknown enum values. - ๐ Type
ChatMember
is made abstract and it's properties are moved into separate inheriting classes - ๐ Changed parameters in
ITelegramBotClient.GetMyCommandsAsync
: added parametersBotCommandScope scope
andstring language
- ๐ Changed parameters in
ITelegramBotClient.SetMyCommandsAsync
: added parametersBotCommandScope scope
andstring language
- Type of property
IInputMedia.Type
changed fromstring
toInputMediaType
- Property
InputFileStream.FileType
is no longer virtual - Constructor of type
InputFileStream
that accepts bothStream content
andstring fileName
:filename
parameter is made optional - Constructor of type
InputOnlineFile
that accepts bothStream content
andstring fileName
:filename
parameter is made optional - Constructor of type
InputTelegramFile
that accepts bothStream content
andstring fileName
:filename
parameter is made optional - Property
InputMediaBase.Type
is made abstract - Protected setter
InputTelegramFile.FileId
is made private protected - Type of property
EncryptedPassportElement.Type
changed fromstring
toEncryptedPassportElementType
- All optional types are made nullable be it value or reference types
โ Removed
- Public setter
ChatMember.Status
- 0๏ธโฃ Enum member
ParseMode.Default
- Enum members
ChatAction.RecordAudio
andChatAction.UploadAudio
- Protected setter from property
InputFileStream.Content
- Constructor of type
InputFileStream
that accepts onlyStream
- Constructor of type
InputOnlineFile
that accepts onlyStream
- Constructor of type
InputTelegramFile
that accepts onlyStream
- Property setter
InputMediaBase.Media
- Protected setter
InputOnlineFile.Url
- All obsolete types, methods and properties related to polling events
- Following interfaces:
ICaptionEntities
,IEntities
,IFormattableEntities
,IInlineMessage
,IInlineReplyMarkupMessage
,INotifiableMessage
,IReplyMarkupMessage
,IReplyMessage
,IThumbMediaMessage
,ICaptionInlineQueryResult
,ILocationInlineQueryResult
,IThumbnailInlineQueryResult
,IThumbnailUrlInlineQueryResult
- Enum