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

Telegram.Bot.API.Types.Chat

Contents

Synopsis

Chat

data Chat Source #

This object represents a chat.

Constructors

Chat 

Fields

  • chatId :: ChatId

    Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

  • chatType :: ChatType

    Type of the chat, can be either “private”, “group”, “supergroup” or “channel”

  • chatTitle :: Maybe Text

    Title, for supergroups, channels and group chats.

  • chatUsername :: Maybe Text

    Username, for private chats, supergroups and channels if available.

  • chatFirstName :: Maybe Text

    First name of the other party in a private chat.

  • chatLastName :: Maybe Text

    Last name of the other party in a private chat.

  • chatIsForum :: Maybe Bool

    True, if the supergroup chat is a forum (has topics enabled).

Instances

Instances details
FromJSON Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types.Chat

ToJSON Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types.Chat

Generic Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types.Chat

Associated Types

type Rep Chat :: Type -> Type #

Methods

from :: Chat -> Rep Chat x #

to :: Rep Chat x -> Chat #

Show Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types.Chat

Methods

showsPrec :: Int -> Chat -> ShowS #

show :: Chat -> String #

showList :: [Chat] -> ShowS #

type Rep Chat Source # 
Instance details

Defined in Telegram.Bot.API.Types.Chat