Net::API::Telegram::Chat - A chat
my $msg = Net::API::Telegram::Chat->new( %data ) || die( Net::API::Telegram::Chat->error, "\n" );
Net::API::Telegram::Chat is a Telegram Message Object as defined here https://core.telegram.org/bots/api#chat
This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
new() will create a new object for the package, pass any argument it might receive to the special standard routine init that must exist. Then it returns what returns init().
The valid parameters are as follow. Methods available here are also parameters to the new method.
verbose
debug
Optional. True, if the bot can change the group sticker set. Returned only in getChat.
Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.
Optional. First name of the other party in a private chat
Unique identifier for this chat. 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.
Optional. Chat invite link, for groups, supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using exportChatInviteLink. Returned only in getChat.
Optional. Last name of the other party in a private chat
Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.
Optional. Chat photo. Returned only in getChat.
Optional. Pinned message, for groups, supergroups and channels. Returned only in getChat.
Optional. For supergroups, name of group sticker set. Returned only in getChat.
Optional. Title, for supergroups, channels and group chats
Type of chat, can be either private, group, supergroup or channel
Optional. Username, for private chats, supergroups and channels if available
Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
Jacques Deguest <jack@deguest.jp>
Net::API::Telegram
Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
To install Net::API::Telegram, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Telegram
CPAN shell
perl -MCPAN -e shell install Net::API::Telegram
For more information on module installation, please visit the detailed CPAN module installation guide.