telegram-bot-api-6.7: 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 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 MediaGroupId Source #

The unique identifier of a media message group a message belongs to.

Constructors

MediaGroupId Text 

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-6.7-8B5O9jcStFh8aacJiwZZeM" '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-6.7-8B5O9jcStFh8aacJiwZZeM" '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-6.7-8B5O9jcStFh8aacJiwZZeM" 'True) (C1 ('MetaCons "CallbackQueryId" '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 #

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-6.7-8B5O9jcStFh8aacJiwZZeM" '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 #