haskell-tdlib-2.0.56.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.NewChatPrivacySettings

Documentation

data NewChatPrivacySettings Source #

Constructors

NewChatPrivacySettings

Contains privacy settings for chats with non-contacts

Fields

  • allow_new_chats_from_unknown_users :: Maybe Bool

    True, if non-contacts users are able to write first to the current user. Telegram Premium subscribers are able to write first regardless of this setting

  • incoming_paid_message_star_count :: Maybe Int

    Number of Telegram Stars that must be paid for every incoming private message by non-contacts; 0-getOption("paid_message_star_count_max"). If positive, then allow_new_chats_from_unknown_users must be true. The current user will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending