Closed kamil-alekber closed 1 year ago
figured it out:
if !update.Message.IsCommand() {
fmt.Printf("message text is empty or not a command: %s", update.Message.Text)
return
}
this won't work with any other message like edited_message, it makes sense of course, silly me 😄
will close the thread
I parse incoming webhook update JSON with this piece of code:
however it sometimes fails with Null dereference errors:
here is what I receive for a json
if my code is not completely correct what is the right way of doing parsing update json to golang struct?