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