test
This commit is contained in:
parent
b3d9f7eca5
commit
8fd67b0551
2
td.go
2
td.go
@ -108,7 +108,7 @@ func getHistory(c *tdlib.Client, chatID64 *int64, senderUserID64 *int64) {
|
|||||||
fmt.Printf("straight msg id : %d\n", m.ID64)
|
fmt.Printf("straight msg id : %d\n", m.ID64)
|
||||||
} else {
|
} else {
|
||||||
if msg.ForwardInfo.GetMessageForwardInfoEnum() == tdlib.MessageForwardedFromUserType {
|
if msg.ForwardInfo.GetMessageForwardInfoEnum() == tdlib.MessageForwardedFromUserType {
|
||||||
fmt.Printf("forwarded msg id : %d\n", int64(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).SenderUserID))
|
fmt.Printf("forwarded msg id : %d\n", msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).ForwardedFromMessageID)
|
||||||
m = ChatWarsMessage{
|
m = ChatWarsMessage{
|
||||||
SenderUserID64: int64(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).SenderUserID),
|
SenderUserID64: int64(msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).SenderUserID),
|
||||||
Date: msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).Date,
|
Date: msg.ForwardInfo.(*tdlib.MessageForwardedFromUser).Date,
|
||||||
|
Loading…
Reference in New Issue
Block a user