haskell-tdlib-2.0.63.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.SetChatPaidMessageStarCount

Synopsis

Documentation

data SetChatPaidMessageStarCount Source #

Changes the amount of Telegram Stars that must be paid to send a message to a supergroup chat; requires can_restrict_members administrator right and supergroupFullInfo.can_enable_paid_messages. Returns Ok

Constructors

SetChatPaidMessageStarCount 

Fields

  • chat_id :: Maybe Int

    Identifier of the supergroup chat

  • paid_message_star_count :: Maybe Int

    The new number of Telegram Stars that must be paid for each message that is sent to the supergroup chat unless the sender is an administrator of the chat; 0-getOption("paid_message_star_count_max"). The supergroup will receive getOption("paid_message_earnings_per_mille") Telegram Stars for each 1000 Telegram Stars paid for message sending