Class TdApi.ToggleSessionCanAcceptSecretChats

  • Enclosing class:
    TdApi

    public static class TdApi.ToggleSessionCanAcceptSecretChats
    extends TdApi.Function
    Toggles whether a session can accept incoming secret chats.

    Returns Ok

    • Field Detail

      • sessionId

        public long sessionId
        Session identifier.
      • canAcceptSecretChats

        public boolean canAcceptSecretChats
        True, if incoming secret chats can be accepted by the session.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ToggleSessionCanAcceptSecretChats

        public ToggleSessionCanAcceptSecretChats()
        Default constructor for a function, which toggles whether a session can accept incoming secret chats.

        Returns Ok

      • ToggleSessionCanAcceptSecretChats

        public ToggleSessionCanAcceptSecretChats​(long sessionId,
                                                 boolean canAcceptSecretChats)
        Creates a function, which toggles whether a session can accept incoming secret chats.

        Returns Ok

        Parameters:
        sessionId - Session identifier.
        canAcceptSecretChats - True, if incoming secret chats can be accepted by the session.