We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
messages
github.com/gotd/td v0.99.1
Yes
I am trying to get all the pinned messages in a peer.
Here is the code:
pinnedMessages, err := Client.API().MessagesSearch(ctx, &tg.MessagesSearchRequest{ Peer: utils.PeerAsInputPeer(peer, accessHash), Filter: &tg.InputMessagesFilterPinned{}, }) if err != nil { log.Fatalf("Error: %v", err) }
I was expecting a list of messages that represents all the messages
It is null and on printing (json-ing) the value of pinnedMessages, i am getting:
pinnedMessages
{"Flags":0,"Inexact":false,"Count":1,"NextRate":0,"OffsetIDOffset":0,"Messages":null,"Chats":null,"Users":null}
I can confirm that I am getting correct amount of Count but why are the Messages null? Am i missing smth?
Count
Messages
go version go1.22.0 linux/amd64
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of gotd are you using?
github.com/gotd/td v0.99.1
Can this issue be reproduced with the latest version?
Yes
What did you do?
I am trying to get all the pinned messages in a peer.
Here is the code:
What did you expect to see?
I was expecting a list of messages that represents all the messages
What did you see instead?
It is null and on printing (json-ing) the value of
pinnedMessages
, i am getting:I can confirm that I am getting correct amount of
Count
but why are theMessages
null? Am i missing smth?What Go version and environment are you using?
go version go1.22.0 linux/amd64
The text was updated successfully, but these errors were encountered: