haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.ReportChat

Synopsis

Documentation

data ReportChat Source #

Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if chat.can_be_reported. Returns ReportChatResult

Constructors

ReportChat 

Fields

  • chat_id :: Maybe Int

    Chat identifier

  • option_id :: Maybe ByteString

    Option identifier chosen by the user; leave empty for the initial request

  • message_ids :: Maybe [Int]

    Identifiers of reported messages. Use messageProperties.can_report_chat to check whether the message can be reported

  • text :: Maybe Text

    Additional report details if asked by the server; 0-1024 characters; leave empty for the initial request

Instances

Instances details
ToJSON ReportChat Source # 
Instance details

Defined in TD.Query.ReportChat

Show ReportChat Source # 
Instance details

Defined in TD.Query.ReportChat

Eq ReportChat Source # 
Instance details

Defined in TD.Query.ReportChat

ShortShow ReportChat Source # 
Instance details

Defined in TD.Query.ReportChat