Skip to content

Commit

Permalink
Merge pull request #1009 from TelegramBots/release/fix_ChatLocation_v16
Browse files Browse the repository at this point in the history
Fix ChatLocation.Address propery name in release/v16
  • Loading branch information
tuscen authored Jul 16, 2021
2 parents 38a77b7 + 22f0425 commit 62f53f2
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/variables.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variables:
- group: Integration Tests Variables
- name: versionPrefix
value: 16.0.1
value: 16.0.2
- name: versionSuffix
value: ""
- name: ciVersionSuffix
Expand Down
101 changes: 98 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,105 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
-->
<!-- markdownlint-configure-file { "MD024": false } -->

## [Unreleased]
## [v.16.0.2] - Unreleased

### Fixed

- Parameter name `ChatLocation.String` -> `ChatLocation.Address`

## [v16.0.1] - 2021-07-10

### Fixed

- `ITelegramBotClient.SendDocumentAsync` passed wrong value into `DisableContentTypeDetection` property

## [v16.0.0] - 2021-06-13

> [Bot API 5.3](https://core.telegram.org/bots/api#june-25-2021) (June 25, 2021)
### Added

- Enum `InputMediaType`
- Type `BanCommandScope`
- 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 accepts `InputMedia`
- Protected constructor `InputTelegramFile` that accepts `FileType`
- Property `string ForceReplyMarkup.InputFieldPlaceholder { get; set; }`
- Property `string ReplyKeyboardMarkup.InputFieldPlaceholder { get; set; }`
- Enum `EncryptedPassportElementType`
- Interface `IChatTargetable`
- Interface `IUserTargetable`

### Changed

- Type `InlineQueryResultBase` renamed to `InlineQueryResult`
- Type `ChatMember` is made abstract
- Property `ChatMember.Status` is made abstract
- 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 of `0`. `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 parameters `BotCommandScope scope` and `string language`
- Changed parameters in `ITelegramBotClient.SetMyCommandsAsync`: added parameters `BotCommandScope scope` and `string language`
- Type of property `IInputMedia.Type` changed from `string` to `InputMediaType`
- Property `InputFileStream.FileType` is no longer virtual
- Constructor of type `InputFileStream` that accepts both `Stream content` and `string fileName`: `filename` parameter is made optional
- Constructor of type `InputOnlineFile` that accepts both `Stream content` and `string fileName`: `filename` parameter is made optional
- Constructor of type `InputTelegramFile` that accepts both `Stream content` and `string 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 from `string` to `EncryptedPassportElementType`
- All optional types are made nullable be it value or reference types

### Removed

- Public setter `ChatMember.Status`
- Enum member `ParseMode.Default`
- Enum members `ChatAction.RecordAudio` and `ChatAction.UploadAudio`
- Protected setter from property `InputFileStream.Content`
- Constructor of type `InputFileStream` that accepts only `Stream`
- Constructor of type `InputOnlineFile` that accepts only `Stream`
- Constructor of type `InputTelegramFile` that accepts only `Stream`
- 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`

## [v16.0.0] - 2021-06-13

### Changed

- `Animation` inherits from `FileBase`
- All custom exceptions are marked as obsolete

Expand Down Expand Up @@ -69,8 +165,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).

## [v16.0.0-alpha.1] - 2021-05-01

> [Bot API 5.1](https://core.telegram.org/bots/api#march-9-2021) (March 9, 2021)
> [Bot API 5.1](https://core.telegram.org/bots/api#march-9-2021) (March 9, 2021)s
> [Bot API 5.0](https://core.telegram.org/bots/api#november-4-2020) (November 4, 2020)
### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram.Bot/Types/ChatLocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ public class ChatLocation
/// Location address; 1-64 characters, as defined by the chat owner
/// </summary>
[JsonProperty(Required = Required.Always)]
public string String { get; set; }
public string Address { get; set; }
}
}

0 comments on commit 62f53f2

Please sign in to comment.