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