com.pengrad.telegrambot.request.EditForumTopic 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.response.BaseResponse;
public class EditForumTopic extends BaseRequest {
/**
* @deprecated use constructor with Long for future compatibility
*/
@Deprecated
public EditForumTopic(Integer chatId, Integer messageThreadId) {
super(BaseResponse.class);
add("chat_id", chatId);
add("message_thread_id", messageThreadId);
}
public EditForumTopic(Long chatId, Integer messageThreadId) {
super(BaseResponse.class);
add("chat_id", chatId);
add("message_thread_id", messageThreadId);
}
public EditForumTopic(String chatId, Integer messageThreadId) {
super(BaseResponse.class);
add("chat_id", chatId);
add("message_thread_id", messageThreadId);
}
/**
* @deprecated use constructor with Long for future compatibility
*/
@Deprecated
public EditForumTopic(Integer chatId, Integer messageThreadId, String name, String iconCustomEmojiId) {
super(BaseResponse.class);
add("chat_id", chatId);
add("message_thread_id", messageThreadId);
add("name", name);
add("icon_custom_emoji_id", iconCustomEmojiId);
}
public EditForumTopic(Long chatId, Integer messageThreadId, String name, String iconCustomEmojiId) {
super(BaseResponse.class);
add("chat_id", chatId);
add("message_thread_id", messageThreadId);
add("name", name);
add("icon_custom_emoji_id", iconCustomEmojiId);
}
public EditForumTopic(String chatId, Integer messageThreadId, String name, String iconCustomEmojiId) {
super(BaseResponse.class);
add("chat_id", chatId);
add("message_thread_id", messageThreadId);
add("name", name);
add("icon_custom_emoji_id", iconCustomEmojiId);
}
public EditForumTopic name(String name) {
add("name", name);
return this;
}
public EditForumTopic iconCustomEmojiId(String icon_custom_emoji_id) {
add("icon_custom_emoji_id", icon_custom_emoji_id);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy