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

TD.Data.BotSetting

Synopsis

Documentation

data BotSetting Source #

Describes a setting of a bot

Constructors

BotSettingIsInline

A setting for managing whether the bot supports inline queries

Fields

BotSettingInlineQueryPlaceholder

A setting for managing the placeholder for inline queries to the bot

Fields

  • placeholder :: Maybe Text

    Placeholder for inline queries (displayed in the application input field); pass an empty string to use the default placeholder

BotSettingNeedLocation

A setting for managing whether the location of the user is expected to be sent with every inline query to the bot

Fields

  • need_location :: Maybe Bool

    True, if the location of the user is expected to be sent with every inline query to the bot

BotSettingInlineFeedback

A setting for managing the share of chosen inline query results that are received by the bot in updateNewChosenInlineResult

Fields

  • share_denominator :: Maybe Int

    Denominator of the share of chosen inline query results that are received by the bot; the bot receives 1 out of share_denominator chosen results. Must be one of 1, 10, 100, or 1000; pass 0 to stop receiving chosen inline query results

BotSettingCanJoinGroups

A setting for managing whether the bot can be invited to basic group and supergroup chats

Fields

BotSettingCanReadAllGroupMessages

A setting for managing whether the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot

Fields

BotSettingCanConnectToBusiness

A setting for managing whether the bot supports connection to user accounts for chat automation

Fields

BotSettingCanManageBots

A setting for managing whether the bot can manage other bots

Fields

BotSettingSupportsGuestQueries

A setting for managing whether the bot can be queried by username from any non-secret chat

Fields

BotSettingIsGuard

A setting for managing whether the bot can be set as a guard bot in supergroup chats

Fields

BotSettingHasTopics

A setting for managing whether the bot has topics

Fields

BotSettingAllowsUsersToCreateTopics

A setting for managing whether users can create and delete topics in the chat with the bot

Fields

BotSettingHasTopicSidebar

A setting for managing whether topics of the bot are shown in a sidebar

Fields

BotSettingCanCommunicateWithBots

A setting for managing whether the bot can communicate with other bots in groups, private chats, and through business accounts

Fields

BotSettingCallbackQueryMode

A setting for managing how callback queries are received by the bot

Fields

Instances

Instances details
FromJSON BotSetting Source # 
Instance details

Defined in TD.Data.BotSetting

ToJSON BotSetting Source # 
Instance details

Defined in TD.Data.BotSetting

Show BotSetting Source # 
Instance details

Defined in TD.Data.BotSetting

Eq BotSetting Source # 
Instance details

Defined in TD.Data.BotSetting

ShortShow BotSetting Source # 
Instance details

Defined in TD.Data.BotSetting