NAME
Net::API::Telegram::Chat - A chat
SYNOPSIS
my $msg = Net::API::Telegram::Chat->new( %data ) ||
die( Net::API::Telegram::Chat->error, "\n" );
DESCRIPTION
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.
METHODS
- new( {INIT HASH REF}, %PARAMETERS )
-
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
- can_set_sticker_set( Boolean )
-
Optional. True, if the bot can change the group sticker set. Returned only in getChat.
- description( String )
-
Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.
- first_name( String )
-
Optional. First name of the other party in a private chat
- id( Integer )
-
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.
- invite_link( String )
-
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.
- last_name( String )
-
Optional. Last name of the other party in a private chat
- permissions( Net::API::Telegram::ChatPermissions )
-
Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.
- photo( Net::API::Telegram::ChatPhoto )
-
Optional. Chat photo. Returned only in getChat.
- pinned_message( Net::API::Telegram::Message )
-
Optional. Pinned message, for groups, supergroups and channels. Returned only in getChat.
- sticker_set_name( String )
-
Optional. For supergroups, name of group sticker set. Returned only in getChat.
- title( String )
-
Optional. Title, for supergroups, channels and group chats
- type( String )
-
Type of chat, can be either private, group, supergroup or channel
- username( String )
-
Optional. Username, for private chats, supergroups and channels if available
COPYRIGHT
Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
COPYRIGHT & LICENSE
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.