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

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

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

import com.pengrad.telegrambot.model.Sticker.Format;
import com.pengrad.telegrambot.response.GetFileResponse;

/**
 * Stas Parshin
 * 23 July 2017
 */
public class UploadStickerFile extends AbstractUploadRequest {

    /**
     * @param stickerFormat must be one of “static”, “animated”, “video”.
     */
    public UploadStickerFile(Long userId, Object sticker, Format stickerFormat) {
        super(GetFileResponse.class, "sticker", sticker);
        add("user_id", userId);
        add("sticker_format", stickerFormat.name().toLowerCase());
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy