Closed AqlaSolutions closed 1 year ago
See documentation for "localization_target" option at https://core.telegram.org/tdlib/options.
How can I set these options in C# with C++/CLI tdlib?
Use the method TdApi.SetOption
.
Do I need to call client.Send(new SetOption(...))
? Or should it be Td.Client.Execute(new SetOption(...))
?
SetOption
isn't a synchronous method and can't be called with Execute
. Otherwise, it would be documented as such.
Ok. It's confusing that in C# Execute
is a static method while Send
is instance method. So the difference is not just in being synchronous but in global/instance state.
What value is set there? Is there a way to control it?