Skip to content

Commit

Permalink
rename FileJson to FileJSON to make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
stek29 committed Dec 25, 2019
1 parent f4d7467 commit ddbfc93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ func (b *Bot) EditMedia(message Editable, inputMedia InputMedia, options ...inte
"telebot: can't edit media, it doesn't exist anywhere")
}

type FileJson struct {
type FileJSON struct {
// All types.
Type string `json:"type"`
Caption string `json:"caption"`
Expand All @@ -827,7 +827,7 @@ func (b *Bot) EditMedia(message Editable, inputMedia InputMedia, options ...inte
Performer string `json:"performer,omitempty"`
}

resultMedia := &FileJson{Media: mediaRepr}
resultMedia := &FileJSON{Media: mediaRepr}

sendOpts := extractOptions(options)
if sendOpts != nil {
Expand Down

0 comments on commit ddbfc93

Please sign in to comment.