-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathCheckPremiumGiftCode.cs
More file actions
51 lines (47 loc) · 1.43 KB
/
CheckPremiumGiftCode.cs
File metadata and controls
51 lines (47 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Threading.Tasks;
using Newtonsoft.Json;
// REUSE-IgnoreStart
namespace TdLib
{
/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public static partial class TdApi
{
/// <summary>
/// Returns information about a Telegram Premium gift code
/// </summary>
public class CheckPremiumGiftCode : Function<PremiumGiftCodeInfo>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "checkPremiumGiftCode";
/// <summary>
/// Extra data attached to the function
/// </summary>
[JsonProperty("@extra")]
public override string Extra { get; set; }
/// <summary>
/// The code to check
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("code")]
public string Code { get; set; }
}
/// <summary>
/// Returns information about a Telegram Premium gift code
/// </summary>
public static Task<PremiumGiftCodeInfo> CheckPremiumGiftCodeAsync(
this Client client, string code = default)
{
return client.ExecuteAsync(new CheckPremiumGiftCode
{
Code = code
});
}
}
}
// REUSE-IgnoreEnd