td icon indicating copy to clipboard operation
td copied to clipboard

Flutter, error while serializing + deserializing polls

Open Anfet opened this issue 3 years ago • 1 comments

While deserializing polls flutter version of tdlib throws a error at poll.dart line 51, code id: int.parse(json['id']), with error type int is not a string.

This happens because when serializing ("id": id,) id is being set as int, but being retrieved in deserialization as String in int.parse.

Anfet avatar Jul 22 '22 08:07 Anfet

Bindings for specific languages are provided by third-party developers. You need to create an issue in repository of the specific wrapper, or try any other wrapper from https://github.com/tdlib/td/blob/master/example/README.md#dart.

levlam avatar Jul 22 '22 08:07 levlam