| 1 | package Telegram::Bot::Object::User; | ||
| 2 | 6 | $Telegram::Bot::Object::User::VERSION = '0.029'; | |
| 3 | # ABSTRACT: The base class for Telegram message 'User' type. | ||
| 4 | |||
| 5 | |||
| 6 | 6 | ▶ | use Mojo::Base 'Telegram::Bot::Object::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 6 | has 'id'; | |
| 9 | 6 | has 'is_bot'; | |
| 10 | 6 | has 'first_name'; | |
| 11 | 6 | has 'last_name'; # optional | |
| 12 | 6 | has 'username'; # optional | |
| 13 | 6 | has 'language_code'; # optional | |
| 14 | |||
| 15 | 18 | ▶ | sub fields { |
|
Subroutine
fields: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 16 | 18 | return { scalar => [qw/id is_bot first_name last_name username language_code/] | |
| 17 | }; | ||
| 18 | } | ||
| 19 | |||
| 20 | 6 | 1; | |
| 21 | |||
| 22 | __END__ | ||