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:
{"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?
go version go1.22.0 linux/amd64
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too