NAME
Net::API::Telegram::Update - An incoming update.At most one of the optional parameters can be present in any given update
SYNOPSIS
my $msg = Net::API::Telegram::Update->new( %data ) ||
die( Net::API::Telegram::Update->error, "\n" );
DESCRIPTION
Net::API::Telegram::Update is a Telegram Message Object as defined here https://core.telegram.org/bots/api#update
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
- callback_query( Net::API::Telegram::CallbackQuery )
-
Optional. New incoming callback query
- channel_post( Net::API::Telegram::Message )
-
Optional. New incoming channel post of any kind — text, photo, sticker, etc.
- chosen_inline_result( Net::API::Telegram::ChosenInlineResult )
-
Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.
- edited_channel_post( Net::API::Telegram::Message )
-
Optional. New version of a channel post that is known to the bot and was edited
- edited_message( Net::API::Telegram::Message )
-
Optional. New version of a message that is known to the bot and was edited
- inline_query( Net::API::Telegram::InlineQuery )
-
Optional. New incoming inline query
- message( Net::API::Telegram::Message )
-
Optional. New incoming message of any kind — text, photo, sticker, etc.
- poll( Net::API::Telegram::Poll )
-
Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot
- pre_checkout_query( Net::API::Telegram::PreCheckoutQuery )
-
Optional. New incoming pre-checkout query. Contains full information about checkout
- shipping_query( Net::API::Telegram::ShippingQuery )
-
Optional. New incoming shipping query. Only for invoices with flexible price
- update_id( Integer )
-
The update‘s unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you’re using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.
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.