public final class OutgoingStickerMessage extends OutgoingMessage
chatId, disableNotification, replyToMessageId| Modifier and Type | Method and Description |
|---|---|
static OutgoingStickerMessage |
createWithFileId(String fileId,
String chatId,
Boolean disableNotification,
Long replyToMessageId)
Creates
OutgoingStickerMessage based on a file_id to send a file that exists on the Telegram servers. |
static OutgoingStickerMessage |
createWithImage(byte[] image,
String filenameWithExtension,
String chatId,
Boolean disableNotification,
Long replyToMessageId)
Creates
OutgoingStickerMessage based on a given webp image. |
static OutgoingStickerMessage |
createWithUrl(String url,
String chatId,
Boolean disableNotification,
Long replyToMessageId)
Creates
OutgoingStickerMessage based on a HTTP URL as a String for Telegram to get a .webp file from the
Internet. |
String |
getFilenameWithExtension() |
String |
getSticker() |
byte[] |
getStickerImage() |
String |
toString() |
getChatId, getDisableNotification, getReplyToMessageId, setChatId, setDisableNotification, setReplyToMessageIdpublic static OutgoingStickerMessage createWithImage(byte[] image, String filenameWithExtension, String chatId, Boolean disableNotification, Long replyToMessageId)
OutgoingStickerMessage based on a given webp image.image - the imagefilenameWithExtension - the name of the file to send. Example: file.webpchatId - Unique identifier for the target chat or username of the target channeldisableNotification - Sends the message silently. Users will receive a notification with no sound.replyToMessageId - If the message is a reply, ID of the original messagepublic static OutgoingStickerMessage createWithUrl(String url, String chatId, Boolean disableNotification, Long replyToMessageId)
OutgoingStickerMessage based on a HTTP URL as a String for Telegram to get a .webp file from the
Internet.url - image URLchatId - Unique identifier for the target chat or username of the target channeldisableNotification - Sends the message silently. Users will receive a notification with no sound.replyToMessageId - If the message is a reply, ID of the original messagepublic static OutgoingStickerMessage createWithFileId(String fileId, String chatId, Boolean disableNotification, Long replyToMessageId)
OutgoingStickerMessage based on a file_id to send a file that exists on the Telegram servers.fileId - file_id as String to send a file that exists on the Telegram serverschatId - Unique identifier for the target chat or username of the target channeldisableNotification - Sends the message silently. Users will receive a notification with no sound.replyToMessageId - If the message is a reply, ID of the original messagepublic String getSticker()
public byte[] getStickerImage()
public String getFilenameWithExtension()
public String toString()
toString in class OutgoingMessageApache Camel