Class KeyboardButtonRequestChat

java.lang.Object
io.github.natanimn.telebof.types.keyboard.KeyboardButtonRequestChat
All Implemented Interfaces:
Serializable

public class KeyboardButtonRequestChat extends Object implements Serializable
This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate.
Since:
3 March 2025, More about requesting chats ยป.
Author:
Natanim
See Also:
  • Field Details

    • userAdministratorRights

      @SerializedName("user_administrator_rights") private ChatAdministratorRights userAdministratorRights
    • botAdministratorRights

      @SerializedName("bot_administrator_rights") private ChatAdministratorRights botAdministratorRights
    • botIsMember

      @SerializedName("bot_is_member") private Boolean botIsMember
    • chatIsForum

      @SerializedName("chat_is_forum") private Boolean chatIsForum
    • chatHasUsername

      @SerializedName("chat_has_username") private Boolean chatHasUsername
    • chatIsCreated

      @SerializedName("chat_is_created") private Boolean chatIsCreated
    • chatIsChannel

      @SerializedName("chat_is_channel") private Boolean chatIsChannel
    • requestName

      @SerializedName("request_name") private Boolean requestName
    • requestTitle

      @SerializedName("request_title") private Boolean requestTitle
    • requestUsername

      @SerializedName("request_username") private Boolean requestUsername
    • requestPhoto

      @SerializedName("request_photo") private Boolean requestPhoto
    • requestId

      @SerializedName("request_id") private Long requestId
  • Constructor Details

    • KeyboardButtonRequestChat

      public KeyboardButtonRequestChat(Long requestId, boolean chatIsChannel)
      Required
      Parameters:
      requestId - Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message
      chatIsChannel - Pass True to request a channel chat, pass False to request a group or a supergroup chat.
  • Method Details