This commit is contained in:
shoopea 2019-10-02 12:47:17 +08:00
parent 74f1e87a7a
commit 3ba8ece00d

16
bot.go
View File

@ -721,14 +721,14 @@ func botGWithdraw(m *tb.Message) {
if !m.Private() { if !m.Private() {
return return
} }
/*
p := JobPayloadGWithdraw{ p := JobPayloadGWithdraw{
MsgID64: int64(m.ID), MsgID64: int64(m.ID),
ChatID64: m.Chat.ID, ChatID64: m.Chat.ID,
Items: nil, Items: nil,
Status: 0, Status: 0,
} }
*/
r := regexp.MustCompile("^(( )*[a-z0-9]+ [0-9]+( )*)+$") r := regexp.MustCompile("^(( )*[a-z0-9]+ [0-9]+( )*)+$")
for _, l := range r.FindAllStringSubmatch(m.Payload, -1) { for _, l := range r.FindAllStringSubmatch(m.Payload, -1) {
fmt.Print("%v\n", l) fmt.Print("%v\n", l)