test
This commit is contained in:
parent
bc61bd2d3a
commit
4ddf8c29f6
2
td.go
2
td.go
@ -34,6 +34,8 @@ func ListenMQ(c *tdlib.Client, msgs <-chan TGCommand) {
|
|||||||
time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second)))
|
time.Sleep(time.Until(lastOwnTDMsg.Add(time.Second)))
|
||||||
now = time.Now()
|
now = time.Now()
|
||||||
}
|
}
|
||||||
|
b := json.Marshal(m)
|
||||||
|
log.Printf("New MQ message :\n%s\n", string(b))
|
||||||
switch m.Type {
|
switch m.Type {
|
||||||
case commandSendMsg:
|
case commandSendMsg:
|
||||||
msgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(m.Text, nil), true, true)
|
msgTxt := tdlib.NewInputMessageText(tdlib.NewFormattedText(m.Text, nil), true, true)
|
||||||
|
Loading…
Reference in New Issue
Block a user