Class SendDocument
java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
io.micronaut.chatbots.telegram.api.send.SendDocument
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
@NonNull String
@Nullable String
@Nullable String
getThumb()
void
setCaption
(@Nullable String caption) void
setDocument
(@NonNull String document) void
setParseMode
(@Nullable String parseMode) void
Methods inherited from class io.micronaut.chatbots.telegram.api.send.Send
getChatId, getDisableNotification, getMethod, getReplyMarkup, getReplyToMessageId, setChatId, setDisableNotification, setReplyMarkup, setReplyToMessageId
-
Constructor Details
-
SendDocument
public SendDocument()
-
-
Method Details
-
getDocument
- Returns:
- File to send.
-
setDocument
- Parameters:
document
- File to send.
-
getThumb
- Returns:
- Thumbnail of the file sent
-
setThumb
- Parameters:
thumb
- Thumbnail of the file sent
-
getCaption
- Returns:
- Photo caption (may also be used when resending photos by file_id), 0-1024 characters.
-
setCaption
- Parameters:
caption
- Photo caption (may also be used when resending photos by file_id), 0-1024 characters.
-
getParseMode
- Returns:
- Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
-
setParseMode
- Parameters:
parseMode
- Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.
-