| 1 | # -*- perl -*- | ||
| 2 | ##---------------------------------------------------------------------------- | ||
| 3 | ## Net/API/Telegram/InlineQueryResultArticle.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::InlineQueryResultArticle; | ||
| 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 description { return( shift->_set_get_scalar( 'description', @_ ) ); } |
|
Subroutine
description: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | |||
| 24 | 0 | ▶ | sub hide_url { return( shift->_set_get_scalar( 'hide_url', @_ ) ); } |
|
Subroutine
hide_url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | |||
| 26 | 0 | ▶ | sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
|
Subroutine
id: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | |||
| 28 | 0 | ▶ | sub input_message_content { return( shift->_set_get_object( 'input_message_content', 'Net::API::Telegram::InputMessageContent', @_ ) ); } |
|
Subroutine
input_message_content: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 29 | |||
| 30 | 0 | ▶ | sub reply_markup { return( shift->_set_get_object( 'reply_markup', 'Net::API::Telegram::InlineKeyboardMarkup', @_ ) ); } |
|
Subroutine
reply_markup: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | |||
| 32 | 0 | ▶ | sub thumb_height { return( shift->_set_get_number( 'thumb_height', @_ ) ); } |
|
Subroutine
thumb_height: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | |||
| 34 | 0 | ▶ | sub thumb_url { return( shift->_set_get_scalar( 'thumb_url', @_ ) ); } |
|
Subroutine
thumb_url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 35 | |||
| 36 | 0 | ▶ | sub thumb_width { return( shift->_set_get_number( 'thumb_width', @_ ) ); } |
|
Subroutine
thumb_width: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 37 | |||
| 38 | 0 | ▶ | sub title { return( shift->_set_get_scalar( 'title', @_ ) ); } |
|
Subroutine
title: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 39 | |||
| 40 | 0 | ▶ | sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
|
Subroutine
type: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 41 | |||
| 42 | 0 | ▶ | sub url { return( shift->_set_get_scalar( 'url', @_ ) ); } |
|
Subroutine
url: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 43 | |||
| 44 | 0 | ▶ | sub _is_boolean { return( grep( /^$_[1]$/, qw( hide_url ) ) ); } |
|
Subroutine
_is_boolean: not called CC=1 SCAR=6.9
| |||
| 45 | |||
| 46 | 1 | 1; | |
| 47 | |||
| 48 | __END__ | ||
| 49 | |||
| 50 | =encoding utf-8 | ||
| 51 | |||
| 52 | =head1 NAME | ||
| 53 | |||
| 54 | Net::API::Telegram::InlineQueryResultArticle - A link to an article or web page | ||
| 55 | |||
| 56 | =head1 SYNOPSIS | ||
| 57 | |||
| 58 | my $msg = Net::API::Telegram::InlineQueryResultArticle->new( %data ) || | ||
| 59 | die( Net::API::Telegram::InlineQueryResultArticle->error, "\n" ); | ||
| 60 | |||
| 61 | =head1 DESCRIPTION | ||
| 62 | |||
| 63 | L<Net::API::Telegram::InlineQueryResultArticle> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#inlinequeryresultarticle> | ||
| 64 | |||
| 65 | This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl. | ||
| 66 | |||
| 67 | =head1 METHODS | ||
| 68 | |||
| 69 | =over 4 | ||
| 70 | |||
| 71 | =item B<new>( {INIT HASH REF}, %PARAMETERS ) | ||
| 72 | |||
| 73 | B<new>() will create a new object for the package, pass any argument it might receive | ||
| 74 | to the special standard routine B<init> that I<must> exist. | ||
| 75 | Then it returns what returns B<init>(). | ||
| 76 | |||
| 77 | The valid parameters are as follow. Methods available here are also parameters to the B<new> method. | ||
| 78 | |||
| 79 | =over 8 | ||
| 80 | |||
| 81 | =item * I<verbose> | ||
| 82 | |||
| 83 | =item * I<debug> | ||
| 84 | |||
| 85 | =back | ||
| 86 | |||
| 87 | =item B<description>( String ) | ||
| 88 | |||
| 89 | Optional. Short description of the result | ||
| 90 | |||
| 91 | =item B<hide_url>( Boolean ) | ||
| 92 | |||
| 93 | Optional. Pass True, if you don't want the URL to be shown in the message | ||
| 94 | |||
| 95 | =item B<id>( String ) | ||
| 96 | |||
| 97 | Unique identifier for this result, 1-64 Bytes | ||
| 98 | |||
| 99 | =item B<input_message_content>( L<Net::API::Telegram::InputMessageContent> ) | ||
| 100 | |||
| 101 | Content of the message to be sent | ||
| 102 | |||
| 103 | =item B<reply_markup>( L<Net::API::Telegram::InlineKeyboardMarkup> ) | ||
| 104 | |||
| 105 | Optional. Inline keyboard attached to the message | ||
| 106 | |||
| 107 | =item B<thumb_height>( Integer ) | ||
| 108 | |||
| 109 | Optional. Thumbnail height | ||
| 110 | |||
| 111 | =item B<thumb_url>( String ) | ||
| 112 | |||
| 113 | Optional. Url of the thumbnail for the result | ||
| 114 | |||
| 115 | =item B<thumb_width>( Integer ) | ||
| 116 | |||
| 117 | Optional. Thumbnail width | ||
| 118 | |||
| 119 | =item B<title>( String ) | ||
| 120 | |||
| 121 | Title of the result | ||
| 122 | |||
| 123 | =item B<type>( String ) | ||
| 124 | |||
| 125 | Type of the result, must be article | ||
| 126 | |||
| 127 | =item B<url>( String ) | ||
| 128 | |||
| 129 | Optional. URL of the result | ||
| 130 | |||
| 131 | =back | ||
| 132 | |||
| 133 | =head1 COPYRIGHT | ||
| 134 | |||
| 135 | Copyright (c) 2000-2019 DEGUEST Pte. Ltd. | ||
| 136 | |||
| 137 | =head1 AUTHOR | ||
| 138 | |||
| 139 | Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> | ||
| 140 | |||
| 141 | =head1 SEE ALSO | ||
| 142 | |||
| 143 | L<Net::API::Telegram> | ||
| 144 | |||
| 145 | =head1 COPYRIGHT & LICENSE | ||
| 146 | |||
| 147 | Copyright (c) 2018-2019 DEGUEST Pte. Ltd. | ||
| 148 | |||
| 149 | You can use, copy, modify and redistribute this package and associated | ||
| 150 | files under the same terms as Perl itself. | ||
| 151 | |||
| 152 | =cut | ||
| 153 | |||