line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Telegram::Bot::Object::InlineKeyboardButton; |
2
|
|
|
|
|
|
|
$Telegram::Bot::Object::InlineKeyboardButton::VERSION = '0.023'; |
3
|
|
|
|
|
|
|
# ABSTRACT: The base class for Telegram 'InlineKeyboardButton' type objects |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
34
|
use Mojo::Base 'Telegram::Bot::Object::Base'; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
32
|
|
7
|
5
|
|
|
5
|
|
3152
|
use Telegram::Bot::Object::LoginUrl; |
|
5
|
|
|
|
|
16
|
|
|
5
|
|
|
|
|
37
|
|
8
|
5
|
|
|
5
|
|
2417
|
use Telegram::Bot::Object::CallbackGame; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
48
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'text'; |
11
|
|
|
|
|
|
|
has 'url'; |
12
|
|
|
|
|
|
|
has 'login_url'; #LoginUrl |
13
|
|
|
|
|
|
|
has 'callback_data'; |
14
|
|
|
|
|
|
|
has 'switch_inline_query'; |
15
|
|
|
|
|
|
|
has 'switch_inline_query_current_chat'; |
16
|
|
|
|
|
|
|
has 'callback_game'; # CallbackGame |
17
|
|
|
|
|
|
|
has 'pay'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub fields { |
20
|
0
|
|
|
0
|
0
|
|
return { 'scalar' => [qw/text url callback_data switch_inline_query |
21
|
|
|
|
|
|
|
switch_inline_query_current_chat switch_inline_query_current_chat |
22
|
|
|
|
|
|
|
pay/], |
23
|
|
|
|
|
|
|
'Telegram::Bot::Object::LoginUrl' => [qw/login_url/], |
24
|
|
|
|
|
|
|
'Telegram::Bot::Object::CallbackGame'=> [qw/callback_game/], |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__ |