Telegram/InlineKeyboardMarkup.pm

filter: Statementstmt 88.8% 8 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 85.7% 12 / 14 SCAR 0.0
CC
1
Cov
89%
inline_keyboard
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Telegram/UserProfilePhotos.pm ↑ Summary Telegram/CallbackGame.pm »
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 ▶ 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 inline_keyboard { return( shift->_set_get_object_array2( 'inline_keyboard', 'Net::API::Telegram::InlineKeyboardButton', @_ ) ); }
Subroutine inline_keyboard: not called CC=1 SCAR=6.9
Pod documented
23  
24 1 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  
« Telegram/UserProfilePhotos.pm ↑ Summary Telegram/CallbackGame.pm »