Packages

package queries

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. final class AnswerCallbackQuery extends AnyRef

    Use this method to send answers to callback queries sent from inline keyboards.

    Use this method to send answers to callback queries sent from inline keyboards.

    The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.

    On success, True is returned.

    Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via BotFather and accept the terms. Otherwise, you may use links like telegram.me/your_bot?start=XXXX that open your bot with a parameter.

  2. final case class AnswerInlineQuery(inlineQueryId: String, results: Seq[InlineQueryResult], cacheTime: Option[Int] = None, isPersonal: Option[Boolean] = None, nextOffset: Option[String] = None, switchPmText: Option[String] = None, switchPmParameter: Option[String] = None) extends Product with Serializable

    Use this method to send answers to an inline query.

    Use this method to send answers to an inline query. No more than 50 results per query are allowed.

    On success, True is returned.

    inlineQueryId

    Unique identifier for the answered query

    results

    List of results for the inline query

    cacheTime

    The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.

    isPersonal

    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

    nextOffset

    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.

    switchPmText

    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

    switchPmParameter

    Parameter for the start message sent to the bot when user presses the switch button. 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.

  3. final class AnswerPreCheckoutQuery extends AnyRef

    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.

    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.

    Use methods in companion object in order to construct the value of this class.

    Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.

  4. final class AnswerShippingQuery extends AnyRef

    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.

    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.

    Use methods in companion object in order to construct the value of this class.

Value Members

  1. object AnswerCallbackQuery
  2. object AnswerInlineQuery extends Serializable
  3. object AnswerPreCheckoutQuery
  4. object AnswerShippingQuery

Ungrouped