line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- perl -*- |
2
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
3
|
|
|
|
|
|
|
## Net/API/Telegram/InlineQueryResultAudio.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::InlineQueryResultAudio; |
15
|
|
|
|
|
|
|
BEGIN |
16
|
|
|
|
|
|
|
{ |
17
|
1
|
|
|
1
|
|
999
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
18
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Telegram::Generic ); |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
4
|
|
19
|
1
|
|
|
1
|
|
368
|
our( $VERSION ) = '0.1'; |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub audio_duration { return( shift->_set_get_number( 'audio_duration', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub audio_url { return( shift->_set_get_scalar( 'audio_url', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub caption { return( shift->_set_get_scalar( 'caption', @_ ) ); } |
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 parse_mode { return( shift->_set_get_scalar( 'parse_mode', @_ ) ); } |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
1
|
|
sub performer { return( shift->_set_get_scalar( 'performer', @_ ) ); } |
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 title { return( shift->_set_get_scalar( 'title', @_ ) ); } |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__END__ |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=encoding utf-8 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 NAME |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Net::API::Telegram::InlineQueryResultAudio - A link to an MP3 audio file |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 SYNOPSIS |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
my $msg = Net::API::Telegram::InlineQueryResultAudio->new( %data ) || |
55
|
|
|
|
|
|
|
die( Net::API::Telegram::InlineQueryResultAudio->error, "\n" ); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 DESCRIPTION |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
L<Net::API::Telegram::InlineQueryResultAudio> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#inlinequeryresultaudio> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 METHODS |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=over 4 |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item B<new>( {INIT HASH REF}, %PARAMETERS ) |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
B<new>() will create a new object for the package, pass any argument it might receive |
70
|
|
|
|
|
|
|
to the special standard routine B<init> that I<must> exist. |
71
|
|
|
|
|
|
|
Then it returns what returns B<init>(). |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The valid parameters are as follow. Methods available here are also parameters to the B<new> method. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=over 8 |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=item * I<verbose> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * I<debug> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=back |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item B<audio_duration>( Integer ) |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Optional. Audio duration in seconds |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item B<audio_url>( String ) |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
A valid URL for the audio file |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item B<caption>( String ) |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Optional. Caption, 0-1024 characters |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item B<id>( String ) |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Unique identifier for this result, 1-64 bytes |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item B<input_message_content>( L<Net::API::Telegram::InputMessageContent> ) |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Optional. Content of the message to be sent instead of the audio |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item B<parse_mode>( String ) |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption. |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=item B<performer>( String ) |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Optional. Performer |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=item B<reply_markup>( L<Net::API::Telegram::InlineKeyboardMarkup> ) |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Optional. Inline keyboard attached to the message |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=item B<title>( String ) |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
Title |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=item B<type>( String ) |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Type of the result, must be audio |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=back |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=head1 COPYRIGHT |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Copyright (c) 2000-2019 DEGUEST Pte. Ltd. |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head1 AUTHOR |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=head1 SEE ALSO |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
L<Net::API::Telegram> |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
Copyright (c) 2018-2019 DEGUEST Pte. Ltd. |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
142
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
145
|
|
|
|
|
|
|
|