fix: update MessagePrinterBot
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -141,10 +141,33 @@ public class MessagePrinterBot extends TelegramLongPollingBot {
|
||||
sb.append(" fileId: ").append(msg.getVideo().getFileId()).append("\n");
|
||||
}
|
||||
|
||||
// Sticker
|
||||
// Sticker (detailed)
|
||||
if (msg.hasSticker()) {
|
||||
sb.append(" sticker: ").append(msg.getSticker().getEmoji()).append("\n");
|
||||
sb.append(" fileId: ").append(msg.getSticker().getFileId()).append("\n");
|
||||
var sticker = msg.getSticker();
|
||||
sb.append(" sticker:\n");
|
||||
sb.append(" emoji: ").append(sticker.getEmoji()).append("\n");
|
||||
sb.append(" fileId: ").append(sticker.getFileId()).append("\n");
|
||||
sb.append(" fileUniqueId: ").append(sticker.getFileUniqueId()).append("\n");
|
||||
sb.append(" setName: ").append(sticker.getSetName()).append("\n");
|
||||
sb.append(" type: ").append(sticker.getType()).append("\n");
|
||||
sb.append(" isAnimated: ").append(sticker.getIsAnimated()).append("\n");
|
||||
sb.append(" isVideo: ").append(sticker.getIsVideo()).append("\n");
|
||||
sb.append(" width: ").append(sticker.getWidth()).append("\n");
|
||||
sb.append(" height: ").append(sticker.getHeight()).append("\n");
|
||||
sb.append(" fileSize: ").append(sticker.getFileSize()).append(" bytes\n");
|
||||
if (sticker.getCustomEmojiId() != null) {
|
||||
sb.append(" customEmojiId: ").append(sticker.getCustomEmojiId()).append("\n");
|
||||
}
|
||||
if (sticker.getThumbnail() != null) {
|
||||
var thumb = sticker.getThumbnail();
|
||||
sb.append(" thumbnail:\n");
|
||||
sb.append(" fileId: ").append(thumb.getFileId()).append("\n");
|
||||
sb.append(" size: ").append(thumb.getWidth()).append("x").append(thumb.getHeight()).append("\n");
|
||||
sb.append(" fileSize: ").append(thumb.getFileSize()).append(" bytes\n");
|
||||
}
|
||||
if (sticker.getPremiumAnimation() != null) {
|
||||
sb.append(" premiumAnimation: fileId=").append(sticker.getPremiumAnimation().getFileId()).append("\n");
|
||||
}
|
||||
}
|
||||
|
||||
// Location
|
||||
|
||||
Reference in New Issue
Block a user