Telegram/ResponseParameters.pm

filter: Statementstmt 80.0% 8 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 2 / 2 totaltotal 76.4% 13 / 17 SCAR 0.1
CC
1
Cov
80%
migrate_to_chat_id
2.0
retry_after
2.0
BEGIN
1.0
CRAP 1.0
« Telegram/PollOption.pm ↑ Summary Telegram/UserProfilePhotos.pm »
1 # -*- perl -*-
2 ##----------------------------------------------------------------------------
3 ## Net/API/Telegram/ResponseParameters.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::ResponseParameters;
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 migrate_to_chat_id { return( shift->_set_get_number( 'migrate_to_chat_id', @_ ) ); }
Subroutine migrate_to_chat_id: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub retry_after { return( shift->_set_get_number( 'retry_after', @_ ) ); }
Subroutine retry_after: not called CC=1 SCAR=6.9
Pod documented
25  
26 1 1;
27  
28 __END__
29  
30 =encoding utf-8
31  
32 =head1 NAME
33  
34 Net::API::Telegram::ResponseParameters - Information about why a request was unsuccessful
35  
36 =head1 SYNOPSIS
37  
38 my $msg = Net::API::Telegram::ResponseParameters->new( %data ) ||
39 die( Net::API::Telegram::ResponseParameters->error, "\n" );
40  
41 =head1 DESCRIPTION
42  
43 L<Net::API::Telegram::ResponseParameters> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#responseparameters>
44  
45 This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
46  
47 =head1 METHODS
48  
49 =over 4
50  
51 =item B<new>( {INIT HASH REF}, %PARAMETERS )
52  
53 B<new>() will create a new object for the package, pass any argument it might receive
54 to the special standard routine B<init> that I<must> exist.
55 Then it returns what returns B<init>().
56  
57 The valid parameters are as follow. Methods available here are also parameters to the B<new> method.
58  
59 =over 8
60  
61 =item * I<verbose>
62  
63 =item * I<debug>
64  
65 =back
66  
67 =item B<migrate_to_chat_id>( Integer )
68  
69 Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
70  
71 =item B<retry_after>( Integer )
72  
73 Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
74  
75 =back
76  
77 =head1 COPYRIGHT
78  
79 Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
80  
81 =head1 AUTHOR
82  
83 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
84  
85 =head1 SEE ALSO
86  
87 L<Net::API::Telegram>
88  
89 =head1 COPYRIGHT & LICENSE
90  
91 Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
92  
93 You can use, copy, modify and redistribute this package and associated
94 files under the same terms as Perl itself.
95  
96 =cut
97  
« Telegram/PollOption.pm ↑ Summary Telegram/UserProfilePhotos.pm »