All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pengrad.telegrambot.request.CreateForumTopic Maven / Gradle / Ivy

There is a newer version: 7.11.0
Show newest version
package com.pengrad.telegrambot.request;

import com.pengrad.telegrambot.response.CreateForumTopicResponse;

public class CreateForumTopic extends BaseRequest {

    /**
     * @deprecated use constructor with Long for future compatibility
     */
    @Deprecated
    public CreateForumTopic(Integer chatId, String name) {
        super(CreateForumTopicResponse.class);
        add("chat_id", chatId);
        add("name", name);
    }

    public CreateForumTopic(Long chatId, String name) {
        super(CreateForumTopicResponse.class);
        add("chat_id", chatId);
        add("name", name);
    }

    public CreateForumTopic(String chatId, String name) {
        super(CreateForumTopicResponse.class);
        add("chat_id", chatId);
        add("name", name);
    }

    public CreateForumTopic iconColor(Integer iconColor) {
        add("icon_color", iconColor);
        return this;
    }

    public CreateForumTopic iconCustomEmojiId(String iconCustomEmojiId) {
        add("icon_custom_emoji_id", iconCustomEmojiId);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy