Skip to content

Commit

Permalink
add: WithTenantKey
Browse files Browse the repository at this point in the history
  • Loading branch information
chyroc committed Apr 30, 2024
1 parent 5bacf44 commit 9b31fe1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lark.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ func WithAppCredential(appID, appSecret string) ClientOptionFunc {
}
}

// WithTenantKey set tenantKey
func WithTenantKey(tenantKey string) ClientOptionFunc {
return func(r *Lark) {
r.tenantKey = tenantKey
}
}

// WithCustomBot set custom bot
func WithCustomBot(customBotWebHookURL, customBotSecret string) ClientOptionFunc {
return func(r *Lark) {
Expand Down

0 comments on commit 9b31fe1

Please sign in to comment.