line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- perl -*- |
2
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
3
|
|
|
|
|
|
|
## Net/API/Telegram/InlineQueryResultContact.pm |
4
|
|
|
|
|
|
|
## Version 0.1 |
5
|
|
|
|
|
|
|
## Copyright(c) 2019 Jacques Deguest |
6
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
7
|
|
|
|
|
|
|
## Created 2019/05/29 |
8
|
|
|
|
|
|
|
## Modified 2020/05/20 |
9
|
|
|
|
|
|
|
## All rights reserved. |
10
|
|
|
|
|
|
|
## |
11
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify it |
12
|
|
|
|
|
|
|
## under the same terms as Perl itself. |
13
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
14
|
|
|
|
|
|
|
package Net::API::Telegram::InlineQueryResultContact; |
15
|
|
|
|
|
|
|
BEGIN |
16
|
|
|
|
|
|
|
{ |
17
|
1
|
|
|
1
|
|
840
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
18
|
1
|
|
|
1
|
|
4
|
use parent qw( Net::API::Telegram::Generic ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
4
|
|
19
|
1
|
|
|
1
|
|
293
|
our( $VERSION ) = '0.1'; |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub first_name { return( shift->_set_get_scalar( 'first_name', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub input_message_content { return( shift->_set_get_object( 'input_message_content', 'Net::API::Telegram::InputMessageContent', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub last_name { return( shift->_set_get_scalar( 'last_name', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub phone_number { return( shift->_set_get_scalar( 'phone_number', @_ ) ); } |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
sub reply_markup { return( shift->_set_get_object( 'reply_markup', 'Net::API::Telegram::InlineKeyboardMarkup', @_ ) ); } |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
1
|
|
sub thumb_height { return( shift->_set_get_number( 'thumb_height', @_ ) ); } |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub thumb_url { return( shift->_set_get_scalar( 'thumb_url', @_ ) ); } |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
1
|
|
sub thumb_width { return( shift->_set_get_number( 'thumb_width', @_ ) ); } |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
0
|
1
|
|
sub vcard { return( shift->_set_get_scalar( 'vcard', @_ ) ); } |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=encoding utf-8 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 NAME |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Net::API::Telegram::InlineQueryResultContact - A contact with a phone number |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 SYNOPSIS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
my $msg = Net::API::Telegram::InlineQueryResultContact->new( %data ) || |
57
|
|
|
|
|
|
|
die( Net::API::Telegram::InlineQueryResultContact->error, "\n" ); |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 DESCRIPTION |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
L<Net::API::Telegram::InlineQueryResultContact> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#inlinequeryresultcontact> |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 METHODS |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=over 4 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item B<new>( {INIT HASH REF}, %PARAMETERS ) |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
B<new>() will create a new object for the package, pass any argument it might receive |
72
|
|
|
|
|
|
|
to the special standard routine B<init> that I<must> exist. |
73
|
|
|
|
|
|
|
Then it returns what returns B<init>(). |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
The valid parameters are as follow. Methods available here are also parameters to the B<new> method. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=over 8 |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * I<verbose> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=item * I<debug> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=back |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=item B<first_name>( String ) |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Contact's first name |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=item B<id>( String ) |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Unique identifier for this result, 1-64 Bytes |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=item B<input_message_content>( L<Net::API::Telegram::InputMessageContent> ) |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Optional. Content of the message to be sent instead of the contact |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=item B<last_name>( String ) |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Optional. Contact's last name |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=item B<phone_number>( String ) |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Contact's phone number |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=item B<reply_markup>( L<Net::API::Telegram::InlineKeyboardMarkup> ) |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Optional. Inline keyboard attached to the message |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=item B<thumb_height>( Integer ) |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Optional. Thumbnail height |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=item B<thumb_url>( String ) |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Optional. Url of the thumbnail for the result |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=item B<thumb_width>( Integer ) |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
Optional. Thumbnail width |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=item B<type>( String ) |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
Type of the result, must be contact |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=item B<vcard>( String ) |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=back |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=head1 COPYRIGHT |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
Copyright (c) 2000-2019 DEGUEST Pte. Ltd. |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=head1 AUTHOR |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=head1 SEE ALSO |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
L<Net::API::Telegram> |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
Copyright (c) 2018-2019 DEGUEST Pte. Ltd. |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
148
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |
151
|
|
|
|
|
|
|
|