line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Telegram::Bot::Object::User; |
2
|
|
|
|
|
|
|
$Telegram::Bot::Object::User::VERSION = '0.023'; |
3
|
|
|
|
|
|
|
# ABSTRACT: The base class for Telegram message 'User' type. |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
50
|
use Mojo::Base 'Telegram::Bot::Object::Base'; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
35
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
has 'id'; |
9
|
|
|
|
|
|
|
has 'is_bot'; |
10
|
|
|
|
|
|
|
has 'first_name'; |
11
|
|
|
|
|
|
|
has 'last_name'; # optional |
12
|
|
|
|
|
|
|
has 'username'; # optional |
13
|
|
|
|
|
|
|
has 'language_code'; # optional |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub fields { |
16
|
16
|
|
|
16
|
0
|
82
|
return { scalar => [qw/id is_bot first_name last_name username language_code/] |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |