fix
This commit is contained in:
parent
05f49beb73
commit
88ac74be9b
2
td.go
2
td.go
@ -141,7 +141,7 @@ func getHistory(c *tdlib.Client) {
|
|||||||
lastMsgID64 = -1
|
lastMsgID64 = -1
|
||||||
} else {
|
} else {
|
||||||
for _, msg := range msgs.Messages {
|
for _, msg := range msgs.Messages {
|
||||||
switch msg.Content {
|
switch msg.Content.GetMessageContentEnum() {
|
||||||
case tdlib.MessageTextType:
|
case tdlib.MessageTextType:
|
||||||
m := ChatWarsMessage{
|
m := ChatWarsMessage{
|
||||||
UserID64: int64(msg.SenderUserID),
|
UserID64: int64(msg.SenderUserID),
|
||||||
|
Loading…
Reference in New Issue
Block a user