tdsharp: Failed to parse JSON object as TDLib request: Unknown class "updateOption"
Hi I download current source and add tdlib.native package from nuget to TDLib.Samples.GetChats project, update ApId and ApiHash and PhoneNumber, then run. after few moments exception occurred.
TdLib.TdException: 'Failed to parse JSON object as TDLib request: Unknown class "updateOption"'
latest line of output:
'TDLib.Samples.GetChats.exe' (CoreCLR: clrhost): Loaded 'Anonymously Hosted DynamicMethods Assembly'.
Exception thrown: 'TdLib.TdException' in System.Private.CoreLib.dll
An exception of type 'TdLib.TdException' occurred in System.Private.CoreLib.dll but was not handled in user code
Failed to parse JSON object as TDLib request: Unknown class "updateOption
image : https://ibb.co/6RY8bs0
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 9
- Comments: 15
Ok, after several hours of searching, I understand that we do not need to install the options that come by update. I got a few new errors before I realized it. Here’s the timeline:
I checked the documentation and it is not written anywhere in the need to set options after getting the event. And in the examples, it is often ignored in general. Solution: do not set the options that came for the event updateoption