You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: animation.go
+14-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
package telebot
2
2
3
+
import"fmt"
4
+
3
5
// Animation represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
4
6
typeAnimationstruct {
5
7
// FileID is the identifier for this file, which can be used to download or reuse the file.
@@ -29,5 +31,16 @@ type Animation struct {
29
31
30
32
// FileSize is the file size in bytes. It can be bigger than 2^31, and some programming languages may have difficulty/silent defects in interpreting it.
31
33
// But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value (optional).
32
-
FileSizeint`json:"file_size,omitempty"`
34
+
FileSizeint64`json:"file_size,omitempty"`
35
+
}
36
+
37
+
func (c*Animation) ReflectType() string { returnfmt.Sprintf("%T", c) }
Copy file name to clipboardexpand all lines: audio.go
+14-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
package telebot
2
2
3
+
import"fmt"
4
+
3
5
// Audio represents an audio file to be treated as music by the Telegram clients.
4
6
typeAudiostruct {
5
7
// FileID is the identifier for this file, which can be used to download or reuse the file.
@@ -26,8 +28,19 @@ type Audio struct {
26
28
27
29
// FileSize is the file size in bytes. It can be bigger than 2^31, and some programming languages may have difficulty/silent defects in interpreting it.
28
30
// But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value (optional).
29
-
FileSizeint`json:"file_size,omitempty"`
31
+
FileSizeint64`json:"file_size,omitempty"`
30
32
31
33
// Thumbnail is the thumbnail of the album cover to which the music file belongs (optional).
32
34
Thumbnail*PhotoSize`json:"thumbnail,omitempty"`
33
35
}
36
+
37
+
func (c*Audio) ReflectType() string { returnfmt.Sprintf("%T", c) }
Copy file name to clipboardexpand all lines: document.go
+14-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
package telebot
2
2
3
+
import"fmt"
4
+
3
5
// Document represents a general file (as opposed to photos, voice messages, and audio files).
4
6
typeDocumentstruct {
5
7
// FileID is the identifier for this file, which can be used to download or reuse the file.
@@ -20,5 +22,16 @@ type Document struct {
20
22
21
23
// FileSize is the file size in bytes. It can be bigger than 2^31, and some programming languages may have difficulty/silent defects in interpreting it.
22
24
// But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type is safe for storing this value (optional).
23
-
FileSizeint`json:"file_size,omitempty"`
25
+
FileSizeint64`json:"file_size,omitempty"`
26
+
}
27
+
28
+
func (c*Document) ReflectType() string { returnfmt.Sprintf("%T", c) }
0 commit comments