File Coverage

blib/lib/Net/API/Telegram/InlineKeyboardMarkup.pm
Criterion Covered Total %
statement 7 8 87.5
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 11 13 84.6


line stmt bran cond sub pod time code
1             # -*- perl -*-
2             ##----------------------------------------------------------------------------
3             ## Net/API/Telegram/InlineKeyboardMarkup.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::InlineKeyboardMarkup;
15             BEGIN
16             {
17 1     1   893 use strict;
  1         2  
  1         30  
18 1     1   5 use parent qw( Net::API::Telegram::Generic );
  1         2  
  1         4  
19 1     1   99 our( $VERSION ) = '0.1';
20             };
21              
22 0     0 1   sub inline_keyboard { return( shift->_set_get_object_array2( 'inline_keyboard', 'Net::API::Telegram::InlineKeyboardButton', @_ ) ); }
23              
24             1;
25              
26             __END__
27              
28             =encoding utf-8
29              
30             =head1 NAME
31              
32             Net::API::Telegram::InlineKeyboardMarkup - An inline keyboard that appears right next to the message it belongs to
33              
34             =head1 SYNOPSIS
35              
36             my $msg = Net::API::Telegram::InlineKeyboardMarkup->new( %data ) ||
37             die( Net::API::Telegram::InlineKeyboardMarkup->error, "\n" );
38              
39             =head1 DESCRIPTION
40              
41             L<Net::API::Telegram::InlineKeyboardMarkup> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#inlinekeyboardmarkup>
42              
43             This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
44              
45             =head1 METHODS
46              
47             =over 4
48              
49             =item B<new>( {INIT HASH REF}, %PARAMETERS )
50              
51             B<new>() will create a new object for the package, pass any argument it might receive
52             to the special standard routine B<init> that I<must> exist.
53             Then it returns what returns B<init>().
54              
55             The valid parameters are as follow. Methods available here are also parameters to the B<new> method.
56              
57             =over 8
58              
59             =item * I<verbose>
60              
61             =item * I<debug>
62              
63             =back
64              
65             =item B<inline_keyboard>( Array of Array of InlineKeyboardButton )
66              
67             Array of button rows, each represented by an Array of InlineKeyboardButton objects
68              
69             =back
70              
71             =head1 COPYRIGHT
72              
73             Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
74              
75             =head1 AUTHOR
76              
77             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
78              
79             =head1 SEE ALSO
80              
81             L<Net::API::Telegram>
82              
83             =head1 COPYRIGHT & LICENSE
84              
85             Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
86              
87             You can use, copy, modify and redistribute this package and associated
88             files under the same terms as Perl itself.
89              
90             =cut
91