Skip to content

Commit 30214f8

Browse files
committed
Changes
1 parent 3836e5d commit 30214f8

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

TdParseOptions/Program.cs

+21-18
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,27 @@ class Program
2222
{
2323
static async Task Main(string[] args)
2424
{
25-
var options = new Dictionary<string, TdOption>();
26-
27-
// Setup additional options, not (yet) included in public documentation
28-
options.Add("storage_max_time_from_last_access", new TdOption { Name = "storage_max_time_from_last_access", Type = "long", IsWriteable = true, Description = "TBD" });
29-
options.Add("notification_sound_count_max", new TdOption { Name = "notification_sound_count_max", Type = "long", IsWriteable = false, Description = "TBD" });
30-
options.Add("notification_sound_size_max", new TdOption { Name = "notification_sound_size_max", Type = "long", IsWriteable = false, Description = "TBD" });
31-
options.Add("notification_sound_duration_max", new TdOption { Name = "notification_sound_duration_max", Type = "long", IsWriteable = false, Description = "TBD" });
32-
33-
options.Add("is_premium", new TdOption { Name = "is_premium", Type = "bool", IsWriteable = false, Description = "TBD" });
34-
options.Add("is_premium_available", new TdOption { Name = "is_premium_available", Type = "bool", IsWriteable = false, Description = "TBD" });
35-
options.Add("chat_filter_chosen_chat_count_max", new TdOption { Name = "chat_filter_chosen_chat_count_max", Type = "long", IsWriteable = false, Description = "TBD" });
36-
options.Add("chat_filter_count_max", new TdOption { Name = "chat_filter_count_max", Type = "long", IsWriteable = false, Description = "TBD" });
37-
options.Add("bio_length_max", new TdOption { Name = "bio_length_max", Type = "long", IsWriteable = false, Description = "TBD" });
38-
options.Add("anti_spam_bot_user_id", new TdOption { Name = "anti_spam_bot_user_id", Type = "long", IsWriteable = false, Description = "TBD" });
39-
options.Add("forum_member_count_min", new TdOption { Name = "forum_member_count_min", Type = "bool", IsWriteable = false, Description = "TBD" });
40-
41-
// Custom options
42-
options.Add("x_system_proxy_id", new TdOption { Name = "x_system_proxy_id", Type = "long", IsWriteable = true, Description = "TBD" });
25+
var options = new Dictionary<string, TdOption>
26+
{
27+
// Setup additional options, not (yet) included in public documentation
28+
{ "storage_max_time_from_last_access", new TdOption { Name = "storage_max_time_from_last_access", Type = "long", IsWriteable = true, Description = "TBD" } },
29+
{ "notification_sound_count_max", new TdOption { Name = "notification_sound_count_max", Type = "long", IsWriteable = false, Description = "TBD" } },
30+
{ "notification_sound_size_max", new TdOption { Name = "notification_sound_size_max", Type = "long", IsWriteable = false, Description = "TBD" } },
31+
{ "notification_sound_duration_max", new TdOption { Name = "notification_sound_duration_max", Type = "long", IsWriteable = false, Description = "TBD" } },
32+
33+
{ "gift_premium_from_attachment_menu", new TdOption { Name = "gift_premium_from_attachment_menu", Type = "bool", IsWriteable = false, Description = "TBD" } },
34+
{ "gift_premium_from_input_field", new TdOption { Name = "gift_premium_from_input_field", Type = "bool", IsWriteable = false, Description = "TBD" } },
35+
{ "is_premium", new TdOption { Name = "is_premium", Type = "bool", IsWriteable = false, Description = "TBD" } },
36+
{ "is_premium_available", new TdOption { Name = "is_premium_available", Type = "bool", IsWriteable = false, Description = "TBD" } },
37+
{ "chat_filter_chosen_chat_count_max", new TdOption { Name = "chat_filter_chosen_chat_count_max", Type = "long", IsWriteable = false, Description = "TBD" } },
38+
{ "chat_filter_count_max", new TdOption { Name = "chat_filter_count_max", Type = "long", IsWriteable = false, Description = "TBD" } },
39+
{ "bio_length_max", new TdOption { Name = "bio_length_max", Type = "long", IsWriteable = false, Description = "TBD" } },
40+
{ "anti_spam_bot_user_id", new TdOption { Name = "anti_spam_bot_user_id", Type = "long", IsWriteable = false, Description = "TBD" } },
41+
{ "forum_member_count_min", new TdOption { Name = "forum_member_count_min", Type = "bool", IsWriteable = false, Description = "TBD" } },
42+
43+
// Custom options
44+
{ "x_system_proxy_id", new TdOption { Name = "x_system_proxy_id", Type = "long", IsWriteable = true, Description = "TBD" } }
45+
};
4346

4447
var client = new HttpClient();
4548
var content = await client.GetStringAsync("https://core.telegram.org/tdlib/options");

TdParseOptions/Properties/Resources.Designer.cs

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TdParseOptions/Properties/Resources.resx

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
using System.Collections.Generic;
129129
using Telegram.Td.Api;
130130

131-
namespace Unigram.Services
131+
namespace Telegram.Services
132132
{
133133
public interface IOptionsService
134134
{

0 commit comments

Comments
 (0)