Net-API-Telegram
view release on metacpan or search on metacpan
lib/Net/API/Telegram.pm view on Meta::CPAN
=over 8
=item I<cache_time>
This parameter type is Integer and is optional.
The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
=item I<inline_query_id>
This parameter type is String and is required.
Unique identifier for the answered query
=item I<is_personal>
This parameter type is Boolean and is optional.
Pass True, if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query
=item I<next_offset>
This parameter type is String and is optional.
Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you donât support pagination. Offset length canât exceed 64 bytes.
=item I<results>
This parameter type is an array of L<Net::API::Telegram::InlineQueryResult> and is required.
A JSON-serialized array of results for the inline query
=item I<switch_pm_parameter>
This parameter type is String and is optional.
Deep-linking parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their ...
=item I<switch_pm_text>
This parameter type is String and is optional.
If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter
=back
=item B<answerPreCheckoutQuery>( %PARAMETERS )
Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned...
Reference: L<https://core.telegram.org/bots/api#answerprecheckoutquery>
This methods takes the following parameters:
=over 8
=item I<error_message>
This parameter type is String and is optional.
Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment det...
=item I<ok>
This parameter type is Boolean and is required.
Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.
=item I<pre_checkout_query_id>
This parameter type is String and is required.
Unique identifier for the query to be answered
=back
=item B<answerShippingQuery>( %PARAMETERS )
If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.
Reference: L<https://core.telegram.org/bots/api#answershippingquery>
This methods takes the following parameters:
=over 8
=item I<error_message>
This parameter type is String and is optional.
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.
=item I<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)
=item I<shipping_options>
This parameter type is an array of L<Net::API::Telegram::ShippingOption> and is optional.
Required if ok is True. A JSON-serialized array of available shipping options.
=item I<shipping_query_id>
This parameter type is String and is required.
Unique identifier for the query to be answered
=back
=item B<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: L<https://core.telegram.org/bots/api#createnewstickerset>
This methods takes the following parameters:
=over 8
( run in 0.961 second using v1.01-cache-2.11-cpan-39bf76dae61 )