Package org.drinkless.tdlib

# Class TdApi.MessageChatShared

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageChatShared

Enclosing class:
  TdApi

public static class TdApi.MessageChatShared extends TdApi.MessageContent
The current user shared a chat, which was requested by the bot.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.MessageContent

  `TdApi.MessageContent.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `int`
  `buttonId`
  Identifier of the keyboard button with the request.
  `TdApi.SharedChat`
  `chat`
  The shared chat.
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MessageChatShared()`
  The current user shared a chat, which was requested by the bot.
  `MessageChatShared(TdApi.SharedChat chat, int buttonId)`
  The current user shared a chat, which was requested by the bot.

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

  - ### chat

    public TdApi.SharedChat chat
    The shared chat.

  - ### buttonId

    public int buttonId
    Identifier of the keyboard button with the request.

  - ### CONSTRUCTOR

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

- ## Constructor Details

  - ### MessageChatShared

    public MessageChatShared()
    The current user shared a chat, which was requested by the bot.

  - ### MessageChatShared

    public MessageChatShared(TdApi.SharedChat chat, int buttonId)
    The current user shared a chat, which was requested by the bot.
    Parameters:
      `chat` - The shared chat.
      `buttonId` - Identifier of the keyboard button with the request.

- ## 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.MessageContent`
    Returns:
      this.CONSTRUCTOR