-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from RxTelegram/v8.2.0
Add support for api v8.2
- Loading branch information
Showing
11 changed files
with
147 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/RxTelegram.Bot/Interface/Stickers/Requests/RemoveChatVerification.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using RxTelegram.Bot.Interface.BaseTypes; | ||
using RxTelegram.Bot.Interface.Validation; | ||
using RxTelegram.Bot.Validation; | ||
|
||
namespace RxTelegram.Bot.Interface.Stickers.Requests; | ||
|
||
/// <summary> | ||
/// Removes verification from a chat that is currently verified on behalf of the organization represented by the bot. | ||
/// Returns True on success. | ||
/// </summary> | ||
public class RemoveChatVerification : BaseValidation | ||
{ | ||
/// <summary> | ||
/// Unique identifier for the target chat or username of the target channel (in the format @channelusername) | ||
/// </summary> | ||
public ChatId ChatId { get; set; } | ||
|
||
protected override IValidationResult Validate() => this.CreateValidation(); | ||
} |
18 changes: 18 additions & 0 deletions
18
src/RxTelegram.Bot/Interface/Stickers/Requests/RemoveUserVerification.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using RxTelegram.Bot.Interface.Validation; | ||
using RxTelegram.Bot.Validation; | ||
|
||
namespace RxTelegram.Bot.Interface.Stickers.Requests; | ||
|
||
/// <summary> | ||
/// Removes verification from a user who is currently verified on behalf of the organization represented by the bot. | ||
/// Returns True on success. | ||
/// </summary> | ||
public class RemoveUserVerification : BaseValidation | ||
{ | ||
/// <summary> | ||
/// User identifier of the user to be removed | ||
/// </summary> | ||
public long UserId { get; set; } | ||
|
||
protected override IValidationResult Validate() => this.CreateValidation(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/RxTelegram.Bot/Interface/Stickers/Requests/VerifyChat.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using RxTelegram.Bot.Interface.BaseTypes; | ||
using RxTelegram.Bot.Interface.Validation; | ||
using RxTelegram.Bot.Validation; | ||
|
||
namespace RxTelegram.Bot.Interface.Stickers.Requests; | ||
|
||
/// <summary> | ||
/// Verifies a chat on behalf of the organization which is represented by the bot. Returns True on success. | ||
/// </summary> | ||
public class VerifyChat : BaseValidation | ||
{ | ||
/// <summary> | ||
/// Unique identifier for the target chat or username of the target channel (in the format @channelusername) | ||
/// </summary> | ||
public ChatId ChatId { get; set; } | ||
|
||
/// <summary> | ||
/// Custom description for the verification; 0-70 characters. | ||
/// Must be empty if the organization isn't allowed to provide a custom verification description. | ||
/// </summary> | ||
public string CustomDescription { get; set; } | ||
|
||
protected override IValidationResult Validate() => this.CreateValidation(); | ||
} |
23 changes: 23 additions & 0 deletions
23
src/RxTelegram.Bot/Interface/Stickers/Requests/VerifyUser.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using RxTelegram.Bot.Interface.Validation; | ||
using RxTelegram.Bot.Validation; | ||
|
||
namespace RxTelegram.Bot.Interface.Stickers.Requests; | ||
|
||
/// <summary> | ||
/// Verifies a user on behalf of the organization which is represented by the bot. Returns True on success. | ||
/// </summary> | ||
public class VerifyUser : BaseValidation | ||
{ | ||
/// <summary> | ||
/// User identifier of the user to be verified | ||
/// </summary> | ||
public long UserId { get; set; } | ||
|
||
/// <summary> | ||
/// Custom description for the verification; 0-70 characters. | ||
/// Must be empty if the organization isn't allowed to provide a custom verification description. | ||
/// </summary> | ||
public string CustomDescription { get; set; } | ||
|
||
protected override IValidationResult Validate() => this.CreateValidation(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters