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

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

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

import com.pengrad.telegrambot.response.SendResponse;

/**
 * stas
 * 5/1/16.
 */
public class ForwardMessage extends BaseRequest {

    public ForwardMessage(Object chatId, Object fromChatId, int messageId) {
        super(SendResponse.class);
        add("chat_id", chatId).add("from_chat_id", fromChatId).add("message_id", messageId);
    }

    public ForwardMessage messageThreadId(Integer messageThreadId) {
        return add("message_thread_id", messageThreadId);
    }

    public ForwardMessage disableNotification(boolean disableNotification) {
        return add("disable_notification", disableNotification);
    }
    public ForwardMessage protectContent(boolean protectContent) {
        return add("protect_content", protectContent);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy