Skip to content

Commit

Permalink
add bot.SetToken (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkofee authored Oct 7, 2024
1 parent 36f64b9 commit 7cfbcff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ func New(token string, options ...Option) (*Bot, error) {
return b, nil
}

func (b *Bot) SetToken (token string) {

Check failure on line 101 in bot.go

View workflow job for this annotation

GitHub Actions / test

File is not `gofmt`-ed with `-s` (gofmt)
b.token = token
}

// StartWebhook starts the Bot with webhook mode
func (b *Bot) StartWebhook(ctx context.Context) {
wg := sync.WaitGroup{}
Expand Down

0 comments on commit 7cfbcff

Please sign in to comment.