telegram-api-0.2.0.0: Telegram Bot API bindings

Safe HaskellNone
LanguageHaskell2010

Web.Telegram.API.Bot.Requests

Contents

Description

This module contains data objects which represents requests to Telegram Bot API

Synopsis

Types

data AnswerInlineQueryRequest Source

Constructors

AnswerInlineQueryRequest 

Fields

query_inline_query_id :: Text

Unique identifier for the answered query

query_results :: [InlineQueryResult]

A JSON-serialized array of results for the inline query

query_cache_time :: Maybe Int

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

query_is_personal :: Maybe Bool

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

query_next_offset :: Maybe Text

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.