test
This commit is contained in:
parent
76a4bbdaba
commit
f26983eb9a
4
td.go
4
td.go
@ -48,7 +48,9 @@ func ListenMQ(c *tdlib.Client, msgs <-chan TGCommand) {
|
||||
case commandRefreshMsg:
|
||||
u, err := c.GetMessage(m.FromChatID64, m.FromMsgID64)
|
||||
logOnError(err, "ListenMQ : commandRefreshMsg")
|
||||
log.Printf("ListenMQ : commandRefreshMsg (%d - %d)\n", m.FromChatID64, m.FromMsgID64)
|
||||
b, err := json.Marshal(u)
|
||||
logOnError(err, "ListenMQ : Marshal")
|
||||
log.Printf("ListenMQ : commandRefreshMsg (%d - %d) :\n%s\n", m.FromChatID64, m.FromMsgID64, string(b))
|
||||
if err != nil && u.Content.GetMessageContentEnum() == tdlib.MessageTextType {
|
||||
txt := u.Content.(*tdlib.MessageText).Text.Text
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user