line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Telegram::Bot::Object::Sticker; |
2
|
|
|
|
|
|
|
$Telegram::Bot::Object::Sticker::VERSION = '0.021'; |
3
|
|
|
|
|
|
|
# ABSTRACT: The base class for Telegram message 'Sticker' type. |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
93
|
use Mojo::Base 'Telegram::Bot::Object::Base'; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
27
|
|
7
|
5
|
|
|
5
|
|
646
|
use Telegram::Bot::Object::PhotoSize; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
25
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has 'file_id'; |
10
|
|
|
|
|
|
|
has 'width'; |
11
|
|
|
|
|
|
|
has 'height'; |
12
|
|
|
|
|
|
|
has 'thumb'; # PhotoSize |
13
|
|
|
|
|
|
|
has 'emoji'; |
14
|
|
|
|
|
|
|
has 'set_name'; |
15
|
|
|
|
|
|
|
# has 'mask_position'; # XXX TODO |
16
|
|
|
|
|
|
|
has 'file_size'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub fields { |
19
|
3
|
|
|
3
|
0
|
20
|
return { scalar => [qw/file_id width height emoji |
20
|
|
|
|
|
|
|
set_name file_size /], |
21
|
|
|
|
|
|
|
'Telegram::Bot::Object::PhotoSize' => [ qw/thumb/ ], |
22
|
|
|
|
|
|
|
}; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |