NAME
Net::API::Telegram::ChatMember - Information about one member of a chat
SYNOPSIS
my $msg = Net::API::Telegram::ChatMember->new( %data ) ||
die( Net::API::Telegram::ChatMember->error, "\n" );
DESCRIPTION
Net::API::Telegram::ChatMember is a Telegram Message Object as defined here https://core.telegram.org/bots/api#chatmember
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_add_web_page_previews( Boolean )
-
Optional. Restricted only. True, if the user is allowed to add web page previews to their messages
- can_be_edited( Boolean )
-
Optional. Administrators only. True, if the bot is allowed to edit administrator privileges of that user
- can_change_info( Boolean )
-
Optional. Administrators and restricted only. True, if the user is allowed to change the chat title, photo and other settings
- can_delete_messages( Boolean )
-
Optional. Administrators only. True, if the administrator can delete messages of other users
- can_edit_messages( Boolean )
-
Optional. Administrators only. True, if the administrator can edit messages of other users and can pin messages; channels only
- can_invite_users( Boolean )
-
Optional. Administrators and restricted only. True, if the user is allowed to invite new users to the chat
- can_pin_messages( Boolean )
-
Optional. Administrators and restricted only. True, if the user is allowed to pin messages; groups and supergroups only
- can_post_messages( Boolean )
-
Optional. Administrators only. True, if the administrator can post in the channel; channels only
- can_promote_members( Boolean )
-
Optional. Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)
- can_restrict_members( Boolean )
-
Optional. Administrators only. True, if the administrator can restrict, ban or unban chat members
- can_send_media_messages( Boolean )
-
Optional. Restricted only. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes
- can_send_messages( Boolean )
-
Optional. Restricted only. True, if the user is allowed to send text messages, contacts, locations and venues
- can_send_other_messages( Boolean )
-
Optional. Restricted only. True, if the user is allowed to send animations, games, stickers and use inline bots
- can_send_polls( Boolean )
-
Optional. Restricted only. True, if the user is allowed to send polls
- is_member( Boolean )
-
Optional. Restricted only. True, if the user is a member of the chat at the moment of the request
- status( String )
-
The member's status in the chat. Can be creator, administrator, member, restricted, left or kicked
- until_date( Date )
-
Optional. Restricted and kicked only. Date when restrictions will be lifted for this user; unix time
- user( Net::API::Telegram::User )
-
Information about the user
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.