telegram-bot-simple-0.3.8: Easy to use library for building Telegram bots.
Safe HaskellNone
LanguageHaskell2010

Telegram.Bot.API.InlineMode

Synopsis

Available types

User

data InlineQuery Source #

This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.

https://core.telegram.org/bots/api#inline-mode

Constructors

InlineQuery 

Fields

Instances

Instances details
Show InlineQuery Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Generic InlineQuery Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Associated Types

type Rep InlineQuery :: Type -> Type #

FromJSON InlineQuery Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Methods

parseJSON :: Value -> Parser InlineQuery

parseJSONList :: Value -> Parser [InlineQuery]

ToJSON InlineQuery Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Methods

toJSON :: InlineQuery -> Value

toEncoding :: InlineQuery -> Encoding

toJSONList :: [InlineQuery] -> Value

toEncodingList :: [InlineQuery] -> Encoding

type Rep InlineQuery Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

type Rep InlineQuery = D1 ('MetaData "InlineQuery" "Telegram.Bot.API.InlineMode" "telegram-bot-simple-0.3.8-inplace" 'False) (C1 ('MetaCons "InlineQuery" 'PrefixI 'True) ((S1 ('MetaSel ('Just "inlineQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InlineQueryId) :*: S1 ('MetaSel ('Just "inlineQueryFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 User)) :*: (S1 ('MetaSel ('Just "inlineQueryLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Location)) :*: (S1 ('MetaSel ('Just "inlineQueryQuery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "inlineQueryOffset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

newtype InlineQueryId Source #

Unique identifier for this query

Constructors

InlineQueryId Text 

Instances

Instances details
Eq InlineQueryId Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Show InlineQueryId Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Generic InlineQueryId Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Associated Types

type Rep InlineQueryId :: Type -> Type #

FromJSON InlineQueryId Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Methods

parseJSON :: Value -> Parser InlineQueryId

parseJSONList :: Value -> Parser [InlineQueryId]

ToJSON InlineQueryId Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Methods

toJSON :: InlineQueryId -> Value

toEncoding :: InlineQueryId -> Encoding

toJSONList :: [InlineQueryId] -> Value

toEncodingList :: [InlineQueryId] -> Encoding

Hashable InlineQueryId Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

type Rep InlineQueryId Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

type Rep InlineQueryId = D1 ('MetaData "InlineQueryId" "Telegram.Bot.API.InlineMode" "telegram-bot-simple-0.3.8-inplace" 'True) (C1 ('MetaCons "InlineQueryId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Available methods

answerInlineQuery

type AnswerInlineQuery = "answerInlineQuery" :> (ReqBody '[JSON] AnswerInlineQueryRequest :> Post '[JSON] (Response Bool)) Source #

data AnswerInlineQueryRequest Source #

Instances

Instances details
Generic AnswerInlineQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Associated Types

type Rep AnswerInlineQueryRequest :: Type -> Type #

FromJSON AnswerInlineQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

Methods

parseJSON :: Value -> Parser AnswerInlineQueryRequest

parseJSONList :: Value -> Parser [AnswerInlineQueryRequest]

ToJSON AnswerInlineQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

type Rep AnswerInlineQueryRequest Source # 
Instance details

Defined in Telegram.Bot.API.InlineMode

type Rep AnswerInlineQueryRequest = D1 ('MetaData "AnswerInlineQueryRequest" "Telegram.Bot.API.InlineMode" "telegram-bot-simple-0.3.8-inplace" 'False) (C1 ('MetaCons "AnswerInlineQueryRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "answerInlineQueryRequestInlineQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InlineQueryId) :*: S1 ('MetaSel ('Just "answerInlineQueryRequestResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [InlineQueryResult])))