Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/github.com/valyala/fas…
Browse files Browse the repository at this point in the history
…thttp-1.35.0
  • Loading branch information
mymmrac authored Apr 25, 2022
2 parents 9972ebd + 83f5583 commit e80439c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,12 @@ issues:
# excluded by default patterns execute `golangci-lint run --help`.
# Default value for this option is true.
exclude-use-default: false

# Maximum issues count per one linter.
# Set to 0 to disable.
# Default: 50
max-issues-per-linter: 0
# Maximum count of issues with the same text.
# Set to 0 to disable.
# Default: 3
max-same-issues: 0
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ generate: ## Generate (used for mock generation)
go generate ./...

mock-install: ## Install mockgen
go install github.com/golang/mock/mockgen@v1.6.0
go install github.com/golang/mock/mockgen@latest

generator: ./internal/generator ## Run specific generation
go run ./internal/generator $$RUN
Expand Down
5 changes: 3 additions & 2 deletions telegoapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ func (d DefaultConstructor) JSONRequest(parameters interface{}) (*RequestData, e
}

// MultipartRequest is default implementation
func (d DefaultConstructor) MultipartRequest(
parameters map[string]string, filesParameters map[string]NamedReader) (*RequestData, error) {
func (d DefaultConstructor) MultipartRequest(parameters map[string]string, filesParameters map[string]NamedReader) (
*RequestData, error,
) {
data := &RequestData{
Buffer: &bytes.Buffer{},
}
Expand Down
3 changes: 2 additions & 1 deletion telegoutil/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ func Sticker(id telego.ChatID, sticker telego.InputFile) *telego.SendStickerPara

// Invoice creates telego.SendInvoiceParams with required parameters
func Invoice(id telego.ChatID, title, description, payload, providerToken, currency string,
prices ...telego.LabeledPrice) *telego.SendInvoiceParams {
prices ...telego.LabeledPrice,
) *telego.SendInvoiceParams {
return &telego.SendInvoiceParams{
ChatID: id,
Title: title,
Expand Down

0 comments on commit e80439c

Please sign in to comment.