com.pengrad.telegrambot.request.SetChatMenuButton Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-telegram-bot-api Show documentation
Show all versions of java-telegram-bot-api Show documentation
Java API for Telegram Bot API
package com.pengrad.telegrambot.request;
import com.pengrad.telegrambot.model.MenuButton;
import com.pengrad.telegrambot.response.BaseResponse;
/**
* Mirco Ianese
* 20 Apr 2022
*/
public class SetChatMenuButton extends BaseRequest {
public SetChatMenuButton() {
super(BaseResponse.class);
}
public SetChatMenuButton chatId(long chatId) {
return add("chat_id", chatId);
}
public SetChatMenuButton menuButton(MenuButton menuButton) {
return add("menu_button", menuButton);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy