@@ -45,15 +45,30 @@ const constants = data
4545 key . startsWith ( "DC_SOCKET_" ) ||
4646 key . startsWith ( "DC_LP_AUTH_" ) ||
4747 key . startsWith ( "DC_PUSH_" ) ||
48- key . startsWith ( "DC_TEXT1_" )
48+ key . startsWith ( "DC_TEXT1_" ) ||
49+ key . startsWith ( "DC_CHAT_TYPE" )
4950 ) ;
5051 } )
5152 . map ( ( row ) => {
52- return ` ${ row . key } : ${ row . value } ` ;
53+ return ` ${ row . key } = ${ row . value } ` ;
5354 } )
5455 . join ( ",\n" ) ;
5556
5657writeFileSync (
5758 resolve ( __dirname , "../generated/constants.ts" ) ,
58- `// Generated!\n\nexport enum C {\n${ constants . replace ( / : / g, " =" ) } ,\n}\n` ,
59+ `// Generated!
60+
61+ export enum C {
62+ ${ constants } ,
63+ /** @deprecated 10-8-2025 compare string directly with \`== "Group"\` */
64+ DC_CHAT_TYPE_GROUP = "Group",
65+ /** @deprecated 10-8-2025 compare string directly with \`== "InBroadcast"\`*/
66+ DC_CHAT_TYPE_IN_BROADCAST = "InBroadcast",
67+ /** @deprecated 10-8-2025 compare string directly with \`== "Mailinglist"\` */
68+ DC_CHAT_TYPE_MAILINGLIST = "Mailinglist",
69+ /** @deprecated 10-8-2025 compare string directly with \`== "OutBroadcast"\` */
70+ DC_CHAT_TYPE_OUT_BROADCAST = "OutBroadcast",
71+ /** @deprecated 10-8-2025 compare string directly with \`== "Single"\` */
72+ DC_CHAT_TYPE_SINGLE = "Single",
73+ }\n` ,
5974) ;
0 commit comments