Net-API-Telegram
view release on metacpan or search on metacpan
Required if ok is False. Error message in human readable
form that explains why it is impossible to complete the
order (e.g. "Sorry, delivery to your desired address is
unavailable'). Telegram will display this message to the
user.
*ok* This parameter type is Boolean and is required.
Specify True if delivery to the specified address is
possible and False if there are any problems (for example,
if delivery to the specified address is not possible)
*shipping_options*
This parameter type is an array of
Net::API::Telegram::ShippingOption and is optional. Required
if ok is True. A JSON-serialized array of available shipping
options.
*shipping_query_id*
This parameter type is String and is required.
Unique identifier for the query to be answered
createNewStickerSet( %PARAMETERS )
Use this method to create new sticker set owned by a user. The bot
will be able to edit the created sticker set. Returns True on
success.
Reference: <https://core.telegram.org/bots/api#createnewstickerset>
This methods takes the following parameters:
*contains_masks*
This parameter type is Boolean and is optional.
Pass True, if a set of mask stickers should be created
*emojis*
This parameter type is String and is required.
One or more emoji corresponding to the sticker
*mask_position*
This parameter type is an object
Net::API::Telegram::MaskPosition and is optional. A
JSON-serialized object for position where the mask should be
placed on faces
*name* This parameter type is String and is required.
Short name of sticker set, to be used in t.me/addstickers/
URLs (e.g., animals). Can contain only english letters,
digits and underscores. Must begin with a letter, can't
contain consecutive underscores and must end in â_by_<bot
username>â. <bot_username> is case insensitive. 1-64
characters.
*png_sticker*
This parameter type is one of the following InputFile or
String and is required. Png image with the sticker, must be
up to 512 kilobytes in size, dimensions must not exceed
512px, and either width or height must be exactly 512px.
Pass a file_id as a String to send a file that already
exists on the Telegram servers, pass an HTTP URL as a String
for Telegram to get a file from the Internet, or upload a
new one using multipart/form-data. More info on Sending
Files »
*title* This parameter type is String and is required.
Sticker set title, 1-64 characters
*user_id*
This parameter type is Integer and is required.
User identifier of created sticker set owner
deleteChatPhoto( %PARAMETERS )
Use this method to delete a chat photo. Photos can't be changed for
private chats. The bot must be an administrator in the chat for this
to work and must have the appropriate admin rights. Returns True on
success.
Reference: <https://core.telegram.org/bots/api#deletechatphoto>
This methods takes the following parameters:
*chat_id*
This parameter type is one of the following Integer or
String and is required. Unique identifier for the target
chat or username of the target channel (in the format
@channelusername)
deleteChatStickerSet( %PARAMETERS )
Use this method to delete a group sticker set from a supergroup. The
bot must be an administrator in the chat for this to work and must
have the appropriate admin rights. Use the field can_set_sticker_set
optionally returned in getChat requests to check if the bot can use
this method. Returns True on success.
Reference: <https://core.telegram.org/bots/api#deletechatstickerset>
This methods takes the following parameters:
*chat_id*
This parameter type is one of the following Integer or
String and is required. Unique identifier for the target
chat or username of the target supergroup (in the format
@supergroupusername)
deleteMessage( %PARAMETERS )
Use this method to delete a message, including service messages,
with the following limitations:- A message can only be deleted if it
was sent less than 48 hours ago.- Bots can delete outgoing messages
in private chats, groups, and supergroups.- Bots can delete incoming
messages in private chats.- Bots granted can_post_messages
permissions can delete outgoing messages in channels.- If the bot is
an administrator of a group, it can delete any message there.- If
the bot has can_delete_messages permission in a supergroup or a
channel, it can delete any message there.Returns True on success.
*message_id*
This parameter type is Integer and is required.
Identifier of the original message with the poll
*reply_markup*
This parameter type is an object
Net::API::Telegram::InlineKeyboardMarkup and is optional. A
JSON-serialized object for a new message inline keyboard.
unbanChatMember( %PARAMETERS )
Use this method to unban a previously kicked user in a supergroup or
channel. The user will not return to the group or channel
automatically, but will be able to join via link, etc. The bot must
be an administrator for this to work. Returns True on success.
Reference: <https://core.telegram.org/bots/api#unbanchatmember>
This methods takes the following parameters:
*chat_id*
This parameter type is one of the following Integer or
String and is required. Unique identifier for the target
group or username of the target supergroup or channel (in
the format @username)
*user_id*
This parameter type is Integer and is required.
Unique identifier of the target user
unpinChatMessage( %PARAMETERS )
Use this method to unpin a message in a group, a supergroup, or a
channel. The bot must be an administrator in the chat for this to
work and must have the âcan_pin_messagesâ admin right in the
supergroup or âcan_edit_messagesâ admin right in the channel.
Returns True on success.
Reference: <https://core.telegram.org/bots/api#unpinchatmessage>
This methods takes the following parameters:
*chat_id*
This parameter type is one of the following Integer or
String and is required. Unique identifier for the target
chat or username of the target channel (in the format
@channelusername)
uploadStickerFile( %PARAMETERS )
Use this method to upload a .png file with a sticker for later use
in createNewStickerSet and addStickerToSet methods (can be used
multiple times). Returns the uploaded File on success.
Reference: <https://core.telegram.org/bots/api#uploadstickerfile>
This methods takes the following parameters:
*png_sticker*
This parameter type is an object
Net::API::Telegram::InputFile and is required. Png image
with the sticker, must be up to 512 kilobytes in size,
dimensions must not exceed 512px, and either width or height
must be exactly 512px. More info on Sending Files »
*user_id*
This parameter type is Integer and is required.
User identifier of sticker file owner
COPYRIGHT
Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
Net::API::Telegram
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.
( run in 0.589 second using v1.01-cache-2.11-cpan-39bf76dae61 )