-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parser v2 still cannot unmarshal correctly. #5
Comments
c0re100
changed the title
Parser v2 still can not unmarshal correctly.
Parser v2 still cannot unmarshal correctly.
Nov 11, 2021
Another cannot unmarshal method: Reproduce code:
|
Another cannot unmarshal method: Reproduce code:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's affecting
SearchPublicChat
andGetChat
method.Maybe it's same issue like #1
code:
Error message:
json: cannot unmarshal object into Go struct field .last_message of type tdlib.MessageSender
Reason:
Since a public channel with linked group is allow an user reply without join group,
after
SearchPublicChat
, we can receive chat JSON like thisref: https://github.com/tdlib/td/blob/v1.7.0/td/generate/scheme/td_api.tl#L721
But
interaction_info
do not haveUnmarshalJSON
method to handle multiplemessageSenderUser
, so go-tdlib can't parse correctly and return the error.It's easy to reproduce on my example code.
The text was updated successfully, but these errors were encountered: