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

pro.zackpollard.telegrambot.api.event.chat.message.StickerMessageReceivedEvent Maven / Gradle / Ivy

There is a newer version: 1.6.5
Show newest version
package pro.zackpollard.telegrambot.api.event.chat.message;

import pro.zackpollard.telegrambot.api.chat.message.Message;
import pro.zackpollard.telegrambot.api.chat.message.content.StickerContent;

/**
 * @author Zack Pollard
 */
public class StickerMessageReceivedEvent extends MessageReceivedEvent {

    public StickerMessageReceivedEvent(Message message) {

        super(message);
    }

    /**
     * Gets the Sticker that was received that triggered this Event
     *
     * @return The Sticker that was received that triggered this Event
     */
    @Override
    public StickerContent getContent() {

        return (StickerContent) getMessage().getContent();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy