Skip to content

Commit ccc33d2

Browse files
committed
fix: func (v *PhotoSize) String() string {
return fmt.Sprintf("%s%dx%d:%d", v.FileID, v.Width, v.Height, v.FileSize) }
1 parent b5d9104 commit ccc33d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tgbotapi/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ type PhotoSize struct {
217217
FileSize int `json:"file_size,omitempty"` // optional
218218
}
219219

220+
func (v *PhotoSize) String() string {
221+
return fmt.Sprintf("%s@%dx%d:%dbytes", v.FileID, v.Width, v.Height, v.FileSize)
222+
}
223+
220224
// Audio contains information about audio.
221225
type Audio struct {
222226
FileID string `json:"file_id"`

0 commit comments

Comments
 (0)