This commit is contained in:
shoopea 2019-05-16 19:35:05 +08:00
parent a7a2fe3875
commit 2ff19b1e30

View File

@ -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,
}