Net-API-Telegram

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

                for the user that sent the query. By default, results may be
                returned to any user who sends the same query

        *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.

        *results*
                This parameter type is an array of
                Net::API::Telegram::InlineQueryResult and is required. A
                JSON-serialized array of results for the inline query

        *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 YouTube account to adapt search results
                accordingly. To do this, it displays a ‘Connect your YouTube
                account’ button above the results, or even before showing
                any. The user presses the button, switches to a private chat
                with the bot and, in doing so, passes a start parameter that
                instructs the bot to return an oauth link. Once done, the
                bot can offer a switch_inline button so that the user can
                easily return to the chat where they wanted to use the bot's
                inline capabilities.

        *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

    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. Note: The Bot
        API must receive an answer within 10 seconds after the pre-checkout
        query was sent.

        Reference:
        <https://core.telegram.org/bots/api#answerprecheckoutquery>

        This methods takes the following parameters:

        *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 details. Please choose a different color or
                garment!"). Telegram will display this message to the user.

        *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.

        *pre_checkout_query_id*
                This parameter type is String and is required.

                Unique identifier for the query to be answered

    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: <https://core.telegram.org/bots/api#answershippingquery>

        This methods takes the following parameters:

        *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.

        *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*



( run in 0.632 second using v1.01-cache-2.11-cpan-39bf76dae61 )