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

how to convert json into *tgbotapi.Update

Open 1234xxcc opened this issue 1 year ago • 1 comments

1234xxcc avatar Sep 02 '22 11:09 1234xxcc

Hi, you could try

var update tgbotapi.Update
err = json.Unmarshal([]byte(body), &update)

nomercy360 avatar Sep 02 '22 20:09 nomercy360