chore: minor cleanup (#2124)

This commit is contained in:
YuNing Chen
2023-08-11 22:34:08 +08:00
committed by GitHub
parent c835231d32
commit 409d686f7d
7 changed files with 15 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ func NewBotWithHandler(h Handler) *Bot {
const noTokenWait = 30 * time.Second
const errRetryWait = 10 * time.Second
// Start start an infinity call of getUpdates from Telegram, call r.MessageHandle while get new message updates.
// Start start a long polling using getUpdates to get Update, call r.MessageHandle while get new message updates.
func (b *Bot) Start(ctx context.Context) {
var offset int