File Coverage

blib/lib/Net/API/Telegram/InlineQueryResultVoice.pm
Criterion Covered Total %
statement 7 16 43.7
branch n/a
condition n/a
subroutine 3 12 25.0
pod 9 9 100.0
total 19 37 51.3


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