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

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

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

import java.io.File;

/**
 * stas
 * 5/2/16.
 */
public class SendSticker extends AbstractMultipartRequest {

    public SendSticker(Object chatId, String sticker) {
        super(chatId, sticker);
    }

    public SendSticker(Object chatId, File sticker) {
        super(chatId, sticker);
    }

    public SendSticker(Object chatId, byte[] sticker) {
        super(chatId, sticker);
    }

    @Override
    protected String getFileParamName() {
        return "sticker";
    }

    @Override
    public String getDefaultFileName() {
        return ContentTypes.PHOTO_FILE_NAME;
    }

    @Override
    public String getContentType() {
        return ContentTypes.PHOTO_MIME_TYPE;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy