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 ยป.
See Also:
  • Constructor Details

    • KeyboardButtonRequestChat

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