Telegram/InputTextMessageContent.pm

filter: Statementstmt 66.6% 8 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 42.8% 3 / 7 Podpod 100% 3 / 3 totaltotal 63.6% 14 / 22 SCAR 0.4
CC
1
Cov
67%
disable_web_page_preview
2.0
message_text
2.0
parse_mode
2.0
CRAP 1.0
« Telegram/InputMessageContent.pm ↑ Summary Telegram/KeyboardButton.pm »
1 # -*- perl -*-
2 ##----------------------------------------------------------------------------
3 ## Net/API/Telegram/InputTextMessageContent.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::InputTextMessageContent;
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 disable_web_page_preview { return( shift->_set_get_scalar( 'disable_web_page_preview', @_ ) ); }
Subroutine disable_web_page_preview: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub message_text { return( shift->_set_get_scalar( 'message_text', @_ ) ); }
Subroutine message_text: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub parse_mode { return( shift->_set_get_scalar( 'parse_mode', @_ ) ); }
Subroutine parse_mode: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub _is_boolean { return( grep( /^$_[1]$/, qw( disable_web_page_preview ) ) ); }
Subroutine _is_boolean: not called CC=1 SCAR=6.9
29  
30 1 1;
31  
32 __END__
33  
34 =encoding utf-8
35  
36 =head1 NAME
37  
38 Net::API::Telegram::InputTextMessageContent - The content of a text message to be sent as the result of an inline query
39  
40 =head1 SYNOPSIS
41  
42 my $msg = Net::API::Telegram::InputTextMessageContent->new( %data ) ||
43 die( Net::API::Telegram::InputTextMessageContent->error, "\n" );
44  
45 =head1 DESCRIPTION
46  
47 L<Net::API::Telegram::InputTextMessageContent> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#inputtextmessagecontent>
48  
49 This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
50  
51 =head1 METHODS
52  
53 =over 4
54  
55 =item B<new>( {INIT HASH REF}, %PARAMETERS )
56  
57 B<new>() will create a new object for the package, pass any argument it might receive
58 to the special standard routine B<init> that I<must> exist.
59 Then it returns what returns B<init>().
60  
61 The valid parameters are as follow. Methods available here are also parameters to the B<new> method.
62  
63 =over 8
64  
65 =item * I<verbose>
66  
67 =item * I<debug>
68  
69 =back
70  
71 =item B<disable_web_page_preview>( Boolean )
72  
73 Optional. Disables link previews for links in the sent message
74  
75 =item B<message_text>( String )
76  
77 Text of the message to be sent, 1-4096 characters
78  
79 =item B<parse_mode>( String )
80  
81 Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
82  
83 =back
84  
85 =head1 COPYRIGHT
86  
87 Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
88  
89 =head1 AUTHOR
90  
91 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
92  
93 =head1 SEE ALSO
94  
95 L<Net::API::Telegram>
96  
97 =head1 COPYRIGHT & LICENSE
98  
99 Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
100  
101 You can use, copy, modify and redistribute this package and associated
102 files under the same terms as Perl itself.
103  
104 =cut
105  
« Telegram/InputMessageContent.pm ↑ Summary Telegram/KeyboardButton.pm »