Telegram/InlineQueryResultVideo.pm

filter: Statementstmt 36.3% 8 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 17.6% 3 / 17 Podpod 100% 14 / 14 totaltotal 47.1% 25 / 53 SCAR 2.3
CC
1
Cov
36%
caption
2.0
description
2.0
id
2.0
CRAP 1.3
« Telegram/Chat.pm ↑ Summary Telegram/InlineQueryResultDocument.pm »
1 # -*- perl -*-
2 ##----------------------------------------------------------------------------
3 ## Net/API/Telegram/InlineQueryResultVideo.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::InlineQueryResultVideo;
15 BEGIN
16 {
17 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶ use parent qw( Net::API::Telegram::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶ our( $VERSION ) = '0.1';
Subroutine BEGIN: called CC=1 SCAR=0.0
20 };
21  
22 0 ▶sub caption { return( shift->_set_get_scalar( 'caption', @_ ) ); }
Subroutine caption: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub description { return( shift->_set_get_scalar( 'description', @_ ) ); }
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub id { return( shift->_set_get_scalar( 'id', @_ ) ); }
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub input_message_content { return( shift->_set_get_object( 'input_message_content', 'Net::API::Telegram::InputMessageContent', @_ ) ); }
Subroutine input_message_content: not called CC=1 SCAR=6.9
Pod documented
29  
30 0 ▶sub mime_type { return( shift->_set_get_scalar( 'mime_type', @_ ) ); }
Subroutine mime_type: not called CC=1 SCAR=6.9
Pod documented
31  
32 0 ▶sub parse_mode { return( shift->_set_get_scalar( 'parse_mode', @_ ) ); }
Subroutine parse_mode: not called CC=1 SCAR=6.9
Pod documented
33  
34 0 ▶sub reply_markup { return( shift->_set_get_object( 'reply_markup', 'Net::API::Telegram::InlineKeyboardMarkup', @_ ) ); }
Subroutine reply_markup: not called CC=1 SCAR=6.9
Pod documented
35  
36 0 ▶sub thumb_url { return( shift->_set_get_scalar( 'thumb_url', @_ ) ); }
Subroutine thumb_url: not called CC=1 SCAR=6.9
Pod documented
37  
38 0 ▶sub title { return( shift->_set_get_scalar( 'title', @_ ) ); }
Subroutine title: not called CC=1 SCAR=6.9
Pod documented
39  
40 0 ▶sub type { return( shift->_set_get_scalar( 'type', @_ ) ); }
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
41  
42 0 ▶sub video_duration { return( shift->_set_get_number( 'video_duration', @_ ) ); }
Subroutine video_duration: not called CC=1 SCAR=6.9
Pod documented
43  
44 0 ▶sub video_height { return( shift->_set_get_number( 'video_height', @_ ) ); }
Subroutine video_height: not called CC=1 SCAR=6.9
Pod documented
45  
46 0 ▶sub video_url { return( shift->_set_get_scalar( 'video_url', @_ ) ); }
Subroutine video_url: not called CC=1 SCAR=6.9
Pod documented
47  
48 0 ▶sub video_width { return( shift->_set_get_number( 'video_width', @_ ) ); }
Subroutine video_width: not called CC=1 SCAR=6.9
Pod documented
49  
50 1 1;
51  
52 __END__
53  
54 =encoding utf-8
55  
56 =head1 NAME
57  
58 Net::API::Telegram::InlineQueryResultVideo - A link to a page containing an embedded video player or a video file
59  
60 =head1 SYNOPSIS
61  
62 my $msg = Net::API::Telegram::InlineQueryResultVideo->new( %data ) ||
63 die( Net::API::Telegram::InlineQueryResultVideo->error, "\n" );
64  
65 =head1 DESCRIPTION
66  
67 L<Net::API::Telegram::InlineQueryResultVideo> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#inlinequeryresultvideo>
68  
69 This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
70  
71 =head1 METHODS
72  
73 =over 4
74  
75 =item B<new>( {INIT HASH REF}, %PARAMETERS )
76  
77 B<new>() will create a new object for the package, pass any argument it might receive
78 to the special standard routine B<init> that I<must> exist.
79 Then it returns what returns B<init>().
80  
81 The valid parameters are as follow. Methods available here are also parameters to the B<new> method.
82  
83 =over 8
84  
85 =item * I<verbose>
86  
87 =item * I<debug>
88  
89 =back
90  
91 =item B<caption>( String )
92  
93 Optional. Caption of the video to be sent, 0-1024 characters
94  
95 =item B<description>( String )
96  
97 Optional. Short description of the result
98  
99 =item B<id>( String )
100  
101 Unique identifier for this result, 1-64 bytes
102  
103 =item B<input_message_content>( L<Net::API::Telegram::InputMessageContent> )
104  
105 Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).
106  
107 =item B<mime_type>( String )
108  
109 Mime type of the content of video url, I<text/html> or I<video/mp4>
110  
111 =item B<parse_mode>( String )
112  
113 Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
114  
115 =item B<reply_markup>( L<Net::API::Telegram::InlineKeyboardMarkup> )
116  
117 Optional. Inline keyboard attached to the message
118  
119 =item B<thumb_url>( String )
120  
121 URL of the thumbnail (jpeg only) for the video
122  
123 =item B<title>( String )
124  
125 Title for the result
126  
127 =item B<type>( String )
128  
129 Type of the result, must be video
130  
131 =item B<video_duration>( Integer )
132  
133 Optional. Video duration in seconds
134  
135 =item B<video_height>( Integer )
136  
137 Optional. Video height
138  
139 =item B<video_url>( String )
140  
141 A valid URL for the embedded video player or video file
142  
143 =item B<video_width>( Integer )
144  
145 Optional. Video width
146  
147 =back
148  
149 =head1 COPYRIGHT
150  
151 Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
152  
153 =head1 AUTHOR
154  
155 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
156  
157 =head1 SEE ALSO
158  
159 L<Net::API::Telegram>
160  
161 =head1 COPYRIGHT & LICENSE
162  
163 Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
164  
165 You can use, copy, modify and redistribute this package and associated
166 files under the same terms as Perl itself.
167  
168 =cut
169  
« Telegram/Chat.pm ↑ Summary Telegram/InlineQueryResultDocument.pm »