Skip to content

Commit

Permalink
add bot.SetToken (#122)
Browse files Browse the repository at this point in the history
jonkofee authored Oct 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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

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{}

0 comments on commit 7cfbcff

Please sign in to comment.