telegram-bot-api-7.3.1: Easy to use library for building Telegram bots. Exports Telegram Bot API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Telegram.Bot.API.Types.Common

Synopsis

Documentation

newtype FileId Source #

Unique identifier for this file.

Constructors

FileId Text 

newtype UserId Source #

Unique identifier for this user or bot.

Constructors

UserId Integer 

newtype BoostId Source #

Unique identifier of the boost.

Constructors

BoostId Text 

Instances

Instances details
FromJSON BoostId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToJSON BoostId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Generic BoostId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Associated Types

type Rep BoostId :: Type -> Type #

Methods

from :: BoostId -> Rep BoostId x #

to :: Rep BoostId x -> BoostId #

Show BoostId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Eq BoostId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Methods

(==) :: BoostId -> BoostId -> Bool #

(/=) :: BoostId -> BoostId -> Bool #

type Rep BoostId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep BoostId = D1 ('MetaData "BoostId" "Telegram.Bot.API.Types.Common" "telegram-bot-api-7.3.1-HIEcormdC3TJNwe3u54c0g" 'True) (C1 ('MetaCons "BoostId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype ChatId Source #

Unique identifier for this chat.

Constructors

ChatId Integer 

newtype MessageThreadId Source #

Unique identifier of a message thread to which the message belongs; for supergroups only.

Constructors

MessageThreadId Integer 

newtype RequestId Source #

Signed 32-bit identifier of the request, which will be received back in the UserShared or ChatShared object. Must be unique within the message.

Constructors

RequestId Integer 

newtype PollId Source #

Unique poll identifier.

Constructors

PollId Text 

Instances

Instances details
FromJSON PollId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToJSON PollId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Show PollId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Eq PollId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Methods

(==) :: PollId -> PollId -> Bool #

(/=) :: PollId -> PollId -> Bool #

newtype ShippingOptionId Source #

Constructors

ShippingOptionId Text 

Instances

Instances details
FromJSON ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToJSON ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Generic ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Associated Types

type Rep ShippingOptionId :: Type -> Type #

Show ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Eq ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep ShippingOptionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep ShippingOptionId = D1 ('MetaData "ShippingOptionId" "Telegram.Bot.API.Types.Common" "telegram-bot-api-7.3.1-HIEcormdC3TJNwe3u54c0g" 'True) (C1 ('MetaCons "ShippingOptionId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype WebAppInfo Source #

Constructors

WebAppInfo 

Fields

Instances

Instances details
FromJSON WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToJSON WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Generic WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Associated Types

type Rep WebAppInfo :: Type -> Type #

Show WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep WebAppInfo Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep WebAppInfo = D1 ('MetaData "WebAppInfo" "Telegram.Bot.API.Types.Common" "telegram-bot-api-7.3.1-HIEcormdC3TJNwe3u54c0g" 'True) (C1 ('MetaCons "WebAppInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "webAppInfoUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype CallbackQueryId Source #

Constructors

CallbackQueryId Text 

Instances

Instances details
FromJSON CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToJSON CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Generic CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Associated Types

type Rep CallbackQueryId :: Type -> Type #

Show CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Eq CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep CallbackQueryId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep CallbackQueryId = D1 ('MetaData "CallbackQueryId" "Telegram.Bot.API.Types.Common" "telegram-bot-api-7.3.1-HIEcormdC3TJNwe3u54c0g" 'True) (C1 ('MetaCons "CallbackQueryId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype BusinessConnectionId Source #

Unique identifier of the business connection.

Instances

Instances details
FromJSON BusinessConnectionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToJSON BusinessConnectionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Generic BusinessConnectionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Associated Types

type Rep BusinessConnectionId :: Type -> Type #

Show BusinessConnectionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Eq BusinessConnectionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToHttpApiData BusinessConnectionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep BusinessConnectionId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep BusinessConnectionId = D1 ('MetaData "BusinessConnectionId" "Telegram.Bot.API.Types.Common" "telegram-bot-api-7.3.1-HIEcormdC3TJNwe3u54c0g" 'True) (C1 ('MetaCons "BusinessConnectionId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data SomeChatId Source #

Unique identifier for the target chat or username of the target channel (in the format @channelusername).

Constructors

SomeChatId ChatId

Unique chat ID.

SomeChatUsername Text

Username of the target channel.

Instances

Instances details
FromJSON SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToJSON SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Generic SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

Associated Types

type Rep SomeChatId :: Type -> Type #

Show SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

ToHttpApiData SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep SomeChatId Source # 
Instance details

Defined in Telegram.Bot.API.Types.Common

type Rep SomeChatId = D1 ('MetaData "SomeChatId" "Telegram.Bot.API.Types.Common" "telegram-bot-api-7.3.1-HIEcormdC3TJNwe3u54c0g" 'False) (C1 ('MetaCons "SomeChatId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChatId)) :+: C1 ('MetaCons "SomeChatUsername" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

addType :: Text -> [Pair] -> [Pair] Source #