go-telegram-bot-api / telegram-bot-api

Golang bindings for the Telegram Bot API
https://go-telegram-bot-api.dev
MIT License
5.62k stars 868 forks source link

added methods with context + upgrad go version #601

Open crayonwow opened 1 year ago

crayonwow commented 1 year ago

add methods that allows pass context to calls upgraded go version up to 1.19

OsoianMarcel commented 1 year ago

The initiative to implement the Context is welcome, thank you. Without context, the long polling HTTP requests are not cancelable, so for graceful shutdown, the app needs to wait from 0 to 60 seconds.

Dear author, thank you for the library, I find it the most easy to use.