telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

Runtime error

Open Hasi666 opened this issue 1 year ago • 1 comments

for update := range updates {     if update.Message != nil {         text := update.Message.Text         chatID := update.Message.Chat.ID         if text == "/start" re.MatchString(text) text == "cancel" {           match := re.FindStringSubmatch(text)           referrerID, _ := strconv.Atoi(match[1])           refral.StartHandler(bot, update, referrerID) and ....

2024/08/03 11:33:54 Endpoint: getUpdates, params: map[allowed_updates:null offset:489227412 timeout:60] **panic: runtime error: index out of range [1] with length 0

goroutine 1 [running]: main.main()         C:/Users/Afra/Desktop/main.go:39 +0x868 exit status 2**

How fix that and why it happend ?

Hasi666 avatar Aug 03 '24 08:08 Hasi666