File Coverage

blib/lib/Net/API/Telegram/EncryptedCredentials.pm
Criterion Covered Total %
statement 7 10 70.0
branch n/a
condition n/a
subroutine 3 6 50.0
pod 3 3 100.0
total 13 19 68.4


line stmt bran cond sub pod time code
1             # -*- perl -*-
2             ##----------------------------------------------------------------------------
3             ## Net/API/Telegram/EncryptedCredentials.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::EncryptedCredentials;
15             BEGIN
16             {
17 1     1   818 use strict;
  1         2  
  1         28  
18 1     1   4 use parent qw( Net::API::Telegram::Generic );
  1         2  
  1         4  
19 1     1   122 our( $VERSION ) = '0.1';
20             };
21              
22 0     0 1   sub data { return( shift->_set_get_scalar( 'data', @_ ) ); }
23              
24 0     0 1   sub hash { return( shift->_set_get_scalar( 'hash', @_ ) ); }
25              
26 0     0 1   sub secret { return( shift->_set_get_scalar( 'secret', @_ ) ); }
27              
28             1;
29              
30             __END__
31              
32             =encoding utf-8
33              
34             =head1 NAME
35              
36             Net::API::Telegram::EncryptedCredentials - Data required for decrypting and authenticating EncryptedPassportElement
37              
38             =head1 SYNOPSIS
39              
40             my $msg = Net::API::Telegram::EncryptedCredentials->new( %data ) ||
41             die( Net::API::Telegram::EncryptedCredentials->error, "\n" );
42              
43             =head1 DESCRIPTION
44              
45             L<Net::API::Telegram::EncryptedCredentials> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#encryptedcredentials>
46              
47             This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
48              
49             =head1 METHODS
50              
51             =over 4
52              
53             =item B<new>( {INIT HASH REF}, %PARAMETERS )
54              
55             B<new>() will create a new object for the package, pass any argument it might receive
56             to the special standard routine B<init> that I<must> exist.
57             Then it returns what returns B<init>().
58              
59             The valid parameters are as follow. Methods available here are also parameters to the B<new> method.
60              
61             =over 8
62              
63             =item * I<verbose>
64              
65             =item * I<debug>
66              
67             =back
68              
69             =item B<data>( String )
70              
71             Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
72              
73             =item B<hash>( String )
74              
75             Base64-encoded data hash for data authentication
76              
77             =item B<secret>( String )
78              
79             Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
80              
81             =back
82              
83             =head1 COPYRIGHT
84              
85             Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
86              
87             =head1 AUTHOR
88              
89             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
90              
91             =head1 SEE ALSO
92              
93             L<Net::API::Telegram>
94              
95             =head1 COPYRIGHT & LICENSE
96              
97             Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
98              
99             You can use, copy, modify and redistribute this package and associated
100             files under the same terms as Perl itself.
101              
102             =cut
103