This commit is contained in:
shoopea 2019-05-25 22:38:46 +08:00
parent 5863e67149
commit aaa0473003

4
bot.go
View File

@ -213,7 +213,7 @@ func botListParsingRules(m *tb.Message) {
} }
for _, v := range msgParsingRules { for _, v := range msgParsingRules {
s := fmt.Sprintf("[%d] %s\n", v.ID, v.Descn) s := fmt.Sprintf("[%d] %s\n", v.ID, v.Description)
} }
c := TGCommand{ c := TGCommand{
@ -234,7 +234,7 @@ func botListParsingRule(m *tb.Message) {
if int64(v.ID) == i { if int64(v.ID) == i {
c := TGCommand{ c := TGCommand{
Type: commandReplyMsg, Type: commandReplyMsg,
Text: fmt.Sprintf("%s\n", v.rule), Text: fmt.Sprintf("%s\n", v.Rule),
FromMsgID64: int64(m.ID), FromMsgID64: int64(m.ID),
FromChatID64: m.Chat.ID, FromChatID64: m.Chat.ID,
} }