haskell-tdlib-2.1.22.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.SessionType

Synopsis

Documentation

data SessionType Source #

Describes type of user session

Constructors

SessionTypeDevice

A regular session from a device

Fields

  • session_id :: Maybe Int

    Unique identifier of the session. Use terminateSession to terminate it or confirmSession to confirm it if it isn't confirmed yet

SessionTypeConnectedBot

A business bot connected to the current user's account

Fields

  • bot_user_id :: Maybe Int

    User identifier of the bot. Use deleteBusinessConnectedBot to remove it or confirmBusinessConnectedBot to confirm it if it isn't confirmed yet

Instances

Instances details
FromJSON SessionType Source # 
Instance details

Defined in TD.Data.SessionType

Show SessionType Source # 
Instance details

Defined in TD.Data.SessionType

Eq SessionType Source # 
Instance details

Defined in TD.Data.SessionType

ShortShow SessionType Source # 
Instance details

Defined in TD.Data.SessionType