line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- perl -*- |
2
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
3
|
|
|
|
|
|
|
## Net/API/Telegram/StickerSet.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::StickerSet; |
15
|
|
|
|
|
|
|
BEGIN |
16
|
|
|
|
|
|
|
{ |
17
|
1
|
|
|
1
|
|
991
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
18
|
1
|
|
|
1
|
|
6
|
use parent qw( Net::API::Telegram::Generic ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
8
|
|
19
|
1
|
|
|
1
|
|
308
|
our( $VERSION ) = '0.1'; |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub contains_masks { return( shift->_set_get_scalar( 'contains_masks', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub is_animated { return( shift->_set_get_scalar( 'is_animated', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub name { return( shift->_set_get_scalar( 'name', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub stickers { return( shift->_set_get_object_array( 'stickers', 'Net::API::Telegram::Sticker', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub title { return( shift->_set_get_scalar( 'title', @_ ) ); } |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
|
|
sub _is_boolean { return( grep( /^$_[1]$/, qw( contains_masks is_animated ) ) ); } |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=encoding utf-8 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 NAME |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Net::API::Telegram::StickerSet - A sticker set |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 SYNOPSIS |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my $msg = Net::API::Telegram::StickerSet->new( %data ) || |
47
|
|
|
|
|
|
|
die( Net::API::Telegram::StickerSet->error, "\n" ); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 DESCRIPTION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
L<Net::API::Telegram::StickerSet> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#stickerset> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 METHODS |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=over 4 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item B<new>( {INIT HASH REF}, %PARAMETERS ) |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
B<new>() will create a new object for the package, pass any argument it might receive |
62
|
|
|
|
|
|
|
to the special standard routine B<init> that I<must> exist. |
63
|
|
|
|
|
|
|
Then it returns what returns B<init>(). |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
The valid parameters are as follow. Methods available here are also parameters to the B<new> method. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=over 8 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item * I<verbose> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * I<debug> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=back |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item B<contains_masks>( Boolean ) |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
True, if the sticker set contains masks |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item B<is_animated>( Boolean ) |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
True, if the sticker set contains animated stickers |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item B<name>( String ) |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Sticker set name |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item B<stickers>( Array of Sticker ) |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
List of all set stickers |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item B<title>( String ) |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Sticker set title |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=back |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 COPYRIGHT |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Copyright (c) 2000-2019 DEGUEST Pte. Ltd. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head1 AUTHOR |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 SEE ALSO |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
L<Net::API::Telegram> |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Copyright (c) 2018-2019 DEGUEST Pte. Ltd. |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
114
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
117
|
|
|
|
|
|
|
|