Changelog History
Page 2
-
v16.0.0-alpha.2 Changes
May 10, 2021Bot API 5.2 (April 26, 2021)
β Added
- β± Property
VoiceChatScheduled
to the classMessage
. - β± Types
VoiceChatScheduled
,InputInvoiceMessageContent
- π New
MessageType
value:VoiceChatScheduled
- Property
ChatType
to the classInlineQuery
. - π New
ChatType
value:Sender
- π New
ChatAction
values:RecordVoice
,UploadVoice
- Optional parameters
maxTipAmount
andsuggestedTipAmounts
toITelegramBotClient.SendInvoiceAsync
- Properties
MaxTipAmount
andSuggestedTipAmounts
toSendInvoiceRequest
π Changed
- Parameter order in
ITelegramBotClient.UnpinChatMessageAsync
- Parameter
startParameter
of the methodITelegramBotClient.SendInvoiceAsync
became optional ChatAction
valuesRecordAudio
andUploadAudio
marked as obsoleteReplyToMessageId
andAllowSendingWithoutReply
inIReplyMessage
,CopyMessageRequest
,SendLocationRequest
,SendAnimationRequest
,SendAudioRequest
,SendContactRequest
,SendDiceRequest
,SendDocumentRequest
,SendMediaGroupRequest
,SendMessageRequest
,SendPhotoRequest
,SendPollRequest
,SendVenueRequest
,SendVideoNoteRequest
,SendVideoRequest
,SendVoiceRequest
,SendGameRequest
,SendStickerRequest
marked as optional
β > β οΈ WARNING! β οΈ β‘οΈ > After the next Bot API update (Bot API 5.3) there will be a one-time change of the value of the field
FileUniqueId
in objects of the typePhotoSize
and of the fieldsSmallFileUniqueId
andBigFileUniqueId
in objects of the typeChatPhoto
.<!-- --> β > β οΈ WARNING! β οΈ β‘οΈ > Service messages about non-bot users joining the chat will be soon removed from large groups. We recommend using the βchat_memberβ update as a replacement.
<!-- --> β > β οΈ WARNING! β οΈ β‘οΈ > After one of the upcoming Bot API updates, user identifiers will become bigger than 231 - 1 and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.
π Fixed
- π Align property order and description with official docs
β Removed
- Parameter
startParameter
fromSendInvoiceRequest
constructor
- β± Property
-
v16.0.0-alpha.1 Changes
May 01, 2021Bot API 5.1 (March 9, 2021)
Bot API 5.0 (November 4, 2020)
β Added
- The method
ITelegramBotClient.CreateChatInviteLinkAsync
- The method
ITelegramBotClient.EditChatInviteLinkAsync
- The method
ITelegramBotClient.RevokeChatInviteLinkAsync
- Optional parameter
revokeMessages
toITelegramBotClient.KickChatMemberAsync
- Optional parameters
canManageChat
,canManageVoiceChats
toITelegramBotClient.KickChatMemberAsync
- Property
RevokeMessages
toKickChatMemberRequest
- Properties
CanManageChat
,CanManageVoiceChats
toPromoteChatMemberRequest
- Properties
CanManageChat
,CanManageVoiceChats
toChatMember
- Properties
MessageAutoDeleteTimerChanged
,VoiceChatStarted
,VoiceChatEnded
,VoiceChatParticipantsInvited
toMessage
- β‘οΈ Properties
MyChatMember
andChatMember
toUpdate
- β‘οΈ Types
CreateChatInviteLinkRequest
,EditChatInviteLinkRequest
,RevokeChatInviteLinkRequest
,ChatInviteLink
,ChatMemberUpdated
,MessageAutoDeleteTimerChanged
,VoiceChatEnded
,VoiceChatParticipantsInvited
,VoiceChatStarted
- π New enum value
Bowling
forEmoji
- π New enum values
MessageAutoDeleteTimerChanged
,ProximityAlertTriggered
,VoiceChatStarted
,VoiceChatEnded
,VoiceChatParticipantsInvited
forMessageType
- π New enum values
MyChatMember
,ChatMember
forUpdateType
- Delegate
AsyncEventHandler<T>
- Methods:
ITelegramBotClient.LogOutAsync
ITelegramBotClient.CloseAsync
ITelegramBotClient.CopyMessageAsync
ITelegramBotClient.UnpinAllChatMessages
- Optional parameter
ipAddress
toITelegramBotClient.SetWebhookAsync
- β‘οΈ Optional parameter
dropPendingUpdates
toITelegramBotClient.SetWebhookAsync
,ITelegramBotClient.DeleteWebhookAsync
- Optional parameter
allowSendingWithoutReply
to the methodsSendTextMessageAsync
,SendPhotoAsync
,SendVideoAsync
,SendAnimationAsync
,SendAudioAsync
,SendDocumentAsync
,SendStickerAsync
,SendVideoNoteAsync
,SendVoiceAsync
,SendLocationAsync
,SendVenueAsync
,SendContactAsync
,SendPollAsync
,SendDiceAsync
,SendInvoiceAsync
,SendGameAsync
,SendMediaGroupAsync
- Optional parameter
captionEntities
toSendTextMessageAsync
,SendPhotoAsync
,SendVideoAsync
,SendAnimationAsync
,SendAudioAsync
,SendDocumentAsync
,SendVoiceAsync
,SendPollAsync
,EditMessageTextAsync
,EditMessageCaptionAsync
- Optional parameter
isAnonymous
toITelegramBotClient.PromoteChatMemberAsync
- Optional parameter
messageId
toITelegramBotClient.UnpinChatMessageAsync
- Optional parameter
onlyIfBanned
toITelegramBotClient.UnbanChatMemberAsync
- Optional parameter
disableContentTypeDetection
toITelegramBotClient.SendDocumentAsync
- Optional parameter
heading
toITelegramBotClient.SendLocationAsync
,ITelegramBotClient.EditMessageLiveLocationAsync
- Optional parameter
proximityAlertRadius
toITelegramBotClient.SendLocationAsync
,ITelegramBotClient.EditMessageLiveLocationAsync
- Optional parameter
horizontalAccuracy
toITelegramBotClient.SendLocationAsync
,ITelegramBotClient.EditMessageLiveLocationAsync
- Optional parameters
googlePlaceId
,googlePlaceType
toITelegramBotClient.SendVenueAsync
- Property
IpAddress
toSetWebhookRequest
,WebhookInfo
- β‘οΈ Property
DropPendingUpdates
toSetWebhookRequest
,DeleteWebhookRequest
- Property
AllowSendingWithoutReply
toSendMessageRequest
,SendPhotoRequest
,SendAudioRequest
,SendDocumentRequest
,SendStickerRequest
,SendVideoRequest
,SendAnimationRequest
,SendVoiceRequest
,SendVideoNoteRequest
,SendMediaGroupRequest
,SendLocationRequest
,SendVenueRequest
,SendContactRequest
,SendPollRequest
,SendDiceRequest
,SendInvoiceRequest
,SendGameRequest
- Property
CaptionEntities
toInputMediaBase
,InlineQueryResultPhoto
,InlineQueryResultGif
,InlineQueryResultMpeg4Gif
,InlineQueryResultVideo
,InlineQueryResultAudio
,InlineQueryResultVoice
,InlineQueryResultDocument
,InlineQueryResultCachedPhoto
,InlineQueryResultCachedGif
,InlineQueryResultCachedMpeg4Gif
,InlineQueryResultCachedVideo
,InlineQueryResultCachedAudio
,InlineQueryResultCachedVoice
,InlineQueryResultCachedDocument
- Property
Entities
toInputTextMessageContent
- Properties
SenderChat
,AuthorSignature
,ProximityAlertTriggered
toMessage
- Properties
Bio
,LinkedChatId
,Location
toChat
- Property
IsAnonymous
toChatMember
,PromoteChatMemberRequest
- Property
LivePeriod
toLocation
- Property
ProximityAlertRadius
toLocation
,InlineQueryResultLocation
,InputLocationMessageContent
,SendLocationRequest
,EditMessageLiveLocationRequest
,EditInlineMessageLiveLocationRequest
- Property
HorizontalAccuracy
toLocation
,InlineQueryResultLocation
,InputLocationMessageContent
,SendLocationRequest
,EditMessageLiveLocationRequest
,EditInlineMessageLiveLocationRequest
- Property
Heading
toLocation
,InlineQueryResultLocation
,SendLocationRequest
,EditMessageLiveLocationRequest
,EditInlineMessageLiveLocationRequest
- Property
MessageId
toPinChatMessageRequest
- Property
OnlyIfBanned
toUnbanChatMemberRequest
- Property
FileName
toAudio
,Video
- Property
DisableContentTypeDetection
toMakeRequestAsync
,InputMediaDocument
- Properties
GooglePlaceId
,GooglePlaceType
toSendVenueRequest
,Venue
,InlineQueryResultVenue
,InputVenueMessageContent
- π New enum values
Football
,SlotMachine
forEmoji
- Type
ChatLocation
- Type
ProximityAlertTriggered
- π Support for sending and receiving audio and document albums in the method
SendMediaGroupAsync
π Changed
- Constructor in
TelegramBotClient
accepts base url for custom Bot API server as optional third parameter, it accepts only URL's with protocol, host and port parts, everything else is ignored - Marked constructor for
TelegramBotClient
acceptingIWebProxy
as obsolete - Property
ITelegramBotClient.BotId
tolong?
- Event
MakingApiRequest
renamed toOnMakingApiRequest
and it's type is changed toAsyncEventHandler<ApiRequestEventArgs>
- π Event
ApiResponseReceived
renamed toOnApiResponseReceived
and it's type is changed toAsyncEventHandler<ApiResponseEventArgs>
- π Parameters order in following methods (to reflect official docs):
SetWebhookAsync
,DeleteWebhookAsync
,SendTextMessageAsync
,SendPhotoAsync
,SendAudioAsync
,SendDocumentAsync
,SendStickerAsync
,SendVideoAsync
,SendAnimationAsync
,SendVoiceAsync
,SendVideoNoteAsync
,SendMediaGroupAsync
,SendLocationAsync
,SendVenueAsync
,SendContactAsync
,SendPollAsync
,SendDiceAsync
,KickChatMemberAsync
,UnbanChatMemberAsync
,PromoteChatMemberAsync
,EditMessageTextAsync
,EditMessageCaptionAsync
,EditMessageLiveLocationAsync
,SendInvoiceAsync
,SendGameAsync
- π¦ Polling inside the library is now considered obsolete. The code, related to polling will be removed. It is recommended to use Telegram.Bot.Extensions.Polling package instead.
- These methods are now obsolete:
StartReceiving
,StopReceiving
- These events are now obsolete:
OnUpdate
,OnMessage
,OnMessageEdited
,OnInlineQuery
,OnInlineResultChosen
,OnCallbackQuery
,OnReceiveError
,OnReceiveGeneralError
- These fields are now obsolete:
IsReceiving
,MessageOffset
- These methods are now obsolete:
- Error
429 Too Many Request
is now handled by the client and is thrown asApiRequestException
β >β οΈ WARNING! β οΈ
After one of the upcoming Bot API updates, some user identifiers will become bigger than 231 - 1 and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.
π Fixed
- Incorrect property name
ExplanationCaptionEntities
->ExplanationEntities
inSendPollRequest
β Removed
- Obsolete overload method
ITelegramBotClient.DownloadFileAsync
- Obsolete overload method
ITelegramBotClient.SendMediaGroupAsync
- Obsolete constructor for
SendMediaGroupRequest
- Obsolete constructor for
InputMediaPhoto
- Obsolete constructor for
InputMediaVideo
- Obsolete property
AllMembersAreAdministrators
fromChat
- Obsolete property
IsForwarded
fromMessage
- Obsolete value
Animation
from enumMessageType
- The method
-
v15.7.1 Changes
June 18, 2020β Added
- π Source Link support
- π Fully deterministic build
-
v15.7.0 Changes
June 13, 2020β Added
- Enum member
Emoji.Basketball
- Property
InlineQueryResultGif.ThumbMimeType
- Property
InlineQueryResultMpeg4Gif.ThumbMimeType
- Property
Message.ViaBot
- Enum member
-
v15.6.0 Changes
May 30, 2020β Added
- Enum
Emoji
- π Property
Poll.Explanation
- π Property
Poll.ExplanationEntities
- π Property
Poll.OpenPeriod
- π Property
Poll.CloseDate
- Property
Dice.Emoji
- Following optional properties to
SendPollRequest
:Explanation
ExplanationParseMode
OpenPeriod
CloseDate
- Optional property
Emoji
toSendDiceRequest
π Changed
- Following optional parameters to
ITelegramBotClient.SendPollAsync
:explanation
explanationParseMode
openPeriod
closeDate
- Optional parameter
emoji
toITelegramBotClient.SendDiceAsync
- Enum
-
v15.5.1 Changes
April 02, 2020π Fixed
- Implementation of
ITelegramBotClient.CreateNewAnimatedStickerSetAsync
- Implementation of
-
v15.5.0 Changes
April 02, 2020β Added
- Requests
GetMyCommandsRequest
SetMyCommandsRequest
CreateNewAnimatedStickerSetRequest
AddNewAnimatedStickerToSetRequest
SendDiceRequest
SetStickerSetThumbRequest
- Methods:
ITelegramBotClient.SendDiceAsync
ITelegramBotClient.CreateNewAnimatedStickerSetAsync
ITelegramBotClient.AddNewAnimatedStickerToSetAsync
ITelegramBotClient.SetStickerSetThumbAsync
ITelegramBotClient.GetMyCommandsAsync
ITelegramBotClient.SetMyCommandsAsync
- Type
Dice
- Type
BotCommand
- Enum member
MessageType.Dice
- Property
Message.Dice
- Property
StickerSet.Thumb
- Requests
-
v15.4.0 Changes
February 22, 2020β Added
- Property
SendInvoiceRequest.SendPhoneNumberToProvider
- Property
SendInvoiceRequest.SendEmailToProvider
- Optional parameter
sendPhoneNumberToProvider
to methodITelegramBotClient.SendInvoiceAsync
- Optional parameter
sendEmailToProvider
to methodITelegramBotClient.SendInvoiceAsync
- Property
-
v15.3.0 Changes
January 31, 2020β Added
- Type
KeyboardButtonPollType
- Static method
KeyboardButton.WithRequestPoll
- Type
PollAnswer
- Property
KeyboardButton.RequestPoll
- Enum
PollType
- Property
MessageEntity.Language
- π Following properties to type
Poll
:bool? IsAnonymous
string Type
bool? AllowsMultipleAnswers
int? CorrectOptionId
- Following properties to type
SendPollRequest
:bool? IsAnonymous
string Type
bool? AllowsMultipleAnswers
int? CorrectOptionId
bool? IsClosed
- β‘οΈ Property
Update.PollAnswer
- β‘οΈ Enum member
UpdateType.PollAnswer
- Following properties to type
User
:bool? CanJoinGroups
bool? CanReadAllGroupMessages
bool? SupportsInlineQueries
π Changed
- Method
ITelegramBotClient.SendPollAsync
, added following optional parameters:bool? isAnonymous
string type
bool? allowsMultipleAnswers
int? correctOptionId
bool? isClosed
- Method
User.Equals
takes into account new properties
- Type
-
v15.2.1 Changes
January 23, 2020π Changed
- All base request classes use explicit opt-in serialization strategy
- All non Bot API properties in base request classes are annotated by
JsonIgnoreAttribute
- Type
ContactRequestException
is made obsolete due to Telegram changed it's error message
π Fixed
- 0οΈβ£ A bug that prevented requests to be serialized when default
JsonSerializerSettings
were set