NAME
Net::API::Telegram::MessageEntity - One special entity in a text message
SYNOPSIS
my $msg = Net::API::Telegram::MessageEntity->new( %data ) ||
die( Net::API::Telegram::MessageEntity->error, "\n" );
DESCRIPTION
Net::API::Telegram::MessageEntity is a Telegram Message Object as defined here https://core.telegram.org/bots/api#messageentity
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
- length( Integer )
-
Length of the entity in UTF-16 code units
- offset( Integer )
-
Offset in UTF-16 code units to the start of the entity
- type( String )
-
Type of the entity. Can be mention (@username), hashtag, cashtag, bot_command, url, email, phone_number, bold (bold text), italic (italic text), code (monowidth string), pre (monowidth block), text_link (for clickable text URLs), text_mention (for users without usernames)
- url( String )
-
Optional. For text_link only, url that will be opened after user taps on the text
- user( Net::API::Telegram::User )
-
Optional. For text_mention only, the mentioned 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.