diff --git a/workers.go b/workers.go index 02a87b5..0ed5c3c 100644 --- a/workers.go +++ b/workers.go @@ -185,10 +185,10 @@ func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) { log.Printf("TGCmdWorker["+strconv.Itoa(id)+"] : new command.\n%s\n", string(j)) switch c.Type { case commandReplyMsg: - ch := td.Chat{ + ch := tb.Chat{ ID: c.FromChatID64, } - m := td.Message{ + m := tb.Message{ ID: int(c.FromMsgID64), Chat: &ch, }