Module tdlight.api

Class TdApi.TargetChatChosen

Enclosing class:
TdApi

public static final class TdApi.TargetChatChosen extends TdApi.TargetChat
The chat needs to be chosen by the user among chats of the specified types.
  • Field Details

    • allowUserChats

      public boolean allowUserChats
      True, if private chats with ordinary users are allowed.
    • allowBotChats

      public boolean allowBotChats
      True, if private chats with other bots are allowed.
    • allowGroupChats

      public boolean allowGroupChats
      True, if basic group and supergroup chats are allowed.
    • allowChannelChats

      public boolean allowChannelChats
      True, if channel chats are allowed.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • TargetChatChosen

      public TargetChatChosen()
      The chat needs to be chosen by the user among chats of the specified types.
    • TargetChatChosen

      public TargetChatChosen(boolean allowUserChats, boolean allowBotChats, boolean allowGroupChats, boolean allowChannelChats)
      The chat needs to be chosen by the user among chats of the specified types.
      Parameters:
      allowUserChats - boolean True, if private chats with ordinary users are allowed.
      allowBotChats - boolean True, if private chats with other bots are allowed.
      allowGroupChats - boolean True, if basic group and supergroup chats are allowed.
      allowChannelChats - boolean True, if channel chats are allowed.
    • TargetChatChosen

      public TargetChatChosen(DataInput input) throws IOException
      The chat needs to be chosen by the user among chats of the specified types.
      Throws:
      IOException
  • Method Details