Skip to content

Commit

Permalink
fix: add 'omitempty' to LinkPreviewOptions.URL
Browse files Browse the repository at this point in the history
  • Loading branch information
negasus committed Jan 15, 2024
1 parent 96a4c35 commit 427189d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.0.1 (2024-01-15)

- fix: add 'omitempty' to LinkPreviewOptions.URL

## v1.0.0 (2024-01-10)

- support API v7.0
Expand Down
2 changes: 1 addition & 1 deletion models/link_preview.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package models
// LinkPreviewOptions https://core.telegram.org/bots/api#linkpreviewoptions
type LinkPreviewOptions struct {
IsDisabled *bool `json:"is_disabled,omitempty"`
URL *string `json:"url"`
URL *string `json:"url,omitempty"`
PreferSmallMedia *bool `json:"prefer_small_media,omitempty"`
PreferLargeMedia *bool `json:"prefer_large_media,omitempty"`
ShowAboveText *bool `json:"show_above_text,omitempty"`
Expand Down

0 comments on commit 427189d

Please sign in to comment.