This commit is contained in:
shoopea 2019-06-09 21:02:56 +08:00
parent 3b2e44c5ec
commit f062abca0d

4
bot.go
View File

@ -267,7 +267,7 @@ func botMsgLoad(m *tb.Message) {
}
r := regexp.MustCompile("^(http|https)://[a-z0-9./]+.zip$") // https://dump.siteop.biz/20190609163137.backup.zip
if r.MatchString(m.Payload) {
c = TGCommand{
c := TGCommand{
Type: commandReplyMsg,
Text: "Got file",
FromMsgID64: int64(m.ID),
@ -285,7 +285,7 @@ func botMsgLoad(m *tb.Message) {
UnzipMessages(buf.Bytes())
} else {
c = TGCommand{
c := TGCommand{
Type: commandReplyMsg,
Text: "No file",
FromMsgID64: int64(m.ID),