Package org.drinkless.tdlib

# Class TdApi.TargetChatTypes

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TargetChatTypes

Enclosing class:
  `TdApi`

public static class TdApi.TargetChatTypes extends TdApi.Object
Describes allowed types for the target chat.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `boolean`
  `allowBotChats`
  True, if private chats with other bots are allowed.
  `boolean`
  `allowChannelChats`
  True, if channel chats are allowed.
  `boolean`
  `allowGroupChats`
  True, if basic group and supergroup chats are allowed.
  `boolean`
  `allowUserChats`
  True, if private chats with ordinary users are allowed.
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TargetChatTypes()`
  Describes allowed types for the target chat.
  `TargetChatTypes(boolean allowUserChats, boolean allowBotChats, boolean allowGroupChats, boolean allowChannelChats)`
  Describes allowed types for the target chat.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getConstructor()`
  Returns an identifier uniquely determining type of the object.

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## 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
    Identifier uniquely determining type of the object.
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### TargetChatTypes

    public TargetChatTypes()
    Describes allowed types for the target chat.

  - ### TargetChatTypes

    public TargetChatTypes(boolean allowUserChats, boolean allowBotChats, boolean allowGroupChats, boolean allowChannelChats)
    Describes allowed types for the target chat.
    Parameters:
      `allowUserChats` - True, if private chats with ordinary users are allowed.
      `allowBotChats` - True, if private chats with other bots are allowed.
      `allowGroupChats` - True, if basic group and supergroup chats are allowed.
      `allowChannelChats` - True, if channel chats are allowed.

- ## Method Details

  - ### getConstructor

    public int getConstructor()
    Description copied from class: `TdApi.Object`
    Returns an identifier uniquely determining type of the object.
    Specified by:
      `getConstructor` in class `TdApi.Object`
    Returns:
      this.CONSTRUCTOR