Package org.drinkless.tdlib

# Class TdApi.ChatMessageSender

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

Enclosing class:
  TdApi

public static class TdApi.ChatMessageSender extends TdApi.Object
Represents a message sender, which can be used to send messages in a chat.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `boolean`
  `needsPremium`
  True, if Telegram Premium is needed to use the message sender.
  `TdApi.MessageSender`
  `sender`
  The message sender.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChatMessageSender()`
  Represents a message sender, which can be used to send messages in a chat.
  `ChatMessageSender(TdApi.MessageSender sender, boolean needsPremium)`
  Represents a message sender, which can be used to send messages in a 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

  - ### sender

    public TdApi.MessageSender sender
    The message sender.

  - ### needsPremium

    public boolean needsPremium
    True, if Telegram Premium is needed to use the message sender.

  - ### CONSTRUCTOR

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

- ## Constructor Details

  - ### ChatMessageSender

    public ChatMessageSender()
    Represents a message sender, which can be used to send messages in a chat.

  - ### ChatMessageSender

    public ChatMessageSender(TdApi.MessageSender sender, boolean needsPremium)
    Represents a message sender, which can be used to send messages in a chat.
    Parameters:
      `sender` - The message sender.
      `needsPremium` - True, if Telegram Premium is needed to use the message sender.

- ## 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