test
This commit is contained in:
parent
3b2e44c5ec
commit
f062abca0d
4
bot.go
4
bot.go
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user