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

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

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

import com.pengrad.telegrambot.model.MessageEntity;
import com.pengrad.telegrambot.model.request.*;
import com.pengrad.telegrambot.response.MessagesResponse;
import com.pengrad.telegrambot.response.SendResponse;

import java.io.File;
import java.util.Map;

public class SendPaidMedia extends BaseRequest {


    public SendPaidMedia(Object chatId, Integer starCount, InputPaidMedia... media) {
        super(SendResponse.class);
        add("chat_id", chatId).add("star_count", starCount).add("media", media);
    }

    public SendPaidMedia caption(String caption) {
        return add("caption", caption);
    }

    public SendPaidMedia parseMode(ParseMode parseMode) {
        return add("parse_mode", parseMode.name());
    }

    public SendPaidMedia captionEntities(MessageEntity... entities) {
        return add("caption_entities", entities);
    }

    public SendPaidMedia showCaptionAboveMedia(boolean showCaptionAboveMedia) {
        return add("show_caption_above_media", showCaptionAboveMedia);
    }

    public SendPaidMedia disableNotification(boolean disableNotification) {
        return add("disable_notification", disableNotification);
    }

    public SendPaidMedia protectContent(boolean protectContent) {
        return add("protect_content", protectContent);
    }

    public SendPaidMedia replyParameters(ReplyParameters replyParameters) {
        return add("reply_parameters", replyParameters);
    }

    public SendPaidMedia replyMarkup(InlineKeyboardMarkup replyMarkup) {
        return add("reply_markup", replyMarkup);
    }

    public SendPaidMedia replyMarkup(ReplyKeyboardMarkup replyMarkup) {
        return add("reply_markup", replyMarkup);
    }

    public SendPaidMedia replyMarkup(ReplyKeyboardRemove replyMarkup) {
        return add("reply_markup", replyMarkup);
    }

    public SendPaidMedia replyMarkup(ForceReply replyMarkup) {
        return add("reply_markup", replyMarkup);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy