go-tdlib
go-tdlib copied to clipboard
can't get SenderUserID
I updated the tdlib and it lacks in the message type two fields SenderUserID and SenderChatID instead of this there is a Sender field how can I get the SenderUserID in the message filtering function?
this should work:
// msg is a *tdlib.Message
if msg.Sender.GetMessageSenderEnum() == msg.MessageSenderUserType{
fmt.Printf("sender id: %d\n", reply.Sender.(*tdlib.MessageSenderUser).UserID)
}