Skip to content

Commit

Permalink
Fix ChatPermissions optional properties (#1324)
Browse files Browse the repository at this point in the history
* Fix ChatPermissions optional properties

---------

Co-authored-by: Aleksey Usatov <[email protected]>
  • Loading branch information
karb0f0s and tuscen authored Dec 26, 2023
1 parent 8b53002 commit 843756a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .azure-pipelines/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ variables:
- name: versionPrefix
value: 20.0.0
- name: versionSuffix
value: 'alpha.1'
value: 'alpha.2'
- name: ciVersionSuffix
value: ci.$(Build.BuildId)+git.commit.$(Build.SourceVersion)
- name: isPreRelease
Expand All @@ -19,7 +19,7 @@ variables:
${{ else }}:
value: $(versionPrefix)-$(ciVersionSuffix)
- name: netSdkVersion
value: 7.0.x
value: 8.0.x
- name: buildConfiguration
value: Release
- name: vmImage
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "7.0.400",
"version": "8.0.100",
"rollForward": "latestFeature"
}
}
12 changes: 6 additions & 6 deletions src/Telegram.Bot/Types/ChatPermissions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,37 @@ public class ChatPermissions
/// <summary>
/// Optional. <see langword="true" />, if the user is allowed to send audios
/// </summary>
[JsonProperty(Required = Required.Always)]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool? CanSendAudios { get; set; }

/// <summary>
/// Optional. <see langword="true" />, if the user is allowed to send documents
/// </summary>
[JsonProperty(Required = Required.Always)]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool? CanSendDocuments { get; set; }

/// <summary>
/// Optional. <see langword="true" />, if the user is allowed to send photos
/// </summary>
[JsonProperty(Required = Required.Always)]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool? CanSendPhotos { get; set; }

/// <summary>
/// Optional. <see langword="true" />, if the user is allowed to send videos
/// </summary>
[JsonProperty(Required = Required.Always)]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool? CanSendVideos { get; set; }

/// <summary>
/// Optional. <see langword="true" />, if the user is allowed to send video notes
/// </summary>
[JsonProperty(Required = Required.Always)]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool? CanSendVideoNotes { get; set; }

/// <summary>
/// Optional. <see langword="true" />, if the user is allowed to send voice notes
/// </summary>
[JsonProperty(Required = Required.Always)]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool? CanSendVoiceNotes { get; set; }

/// <summary>
Expand Down

0 comments on commit 843756a

Please sign in to comment.