@@ -22,24 +22,27 @@ class Program
22
22
{
23
23
static async Task Main ( string [ ] args )
24
24
{
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
+ } ;
43
46
44
47
var client = new HttpClient ( ) ;
45
48
var content = await client . GetStringAsync ( "https://core.telegram.org/tdlib/options" ) ;
0 commit comments