Class Send
java.lang.Object
io.micronaut.chatbots.telegram.api.send.Send
- Direct Known Subclasses:
SendAnimation
,SendAudio
,SendChatAction
,SendContact
,SendCoordinates
,SendDocument
,SendPoll
,SendText
,SendVideoNote
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Object
@Nullable Boolean
@NonNull String
@Nullable String
@Nullable String
void
void
setDisableNotification
(@Nullable Boolean disableNotification) void
setReplyMarkup
(@Nullable String replyMarkup) void
setReplyToMessageId
(@Nullable String replyToMessageId)
-
Field Details
-
method
-
-
Constructor Details
-
Send
-
-
Method Details
-
getMethod
- Returns:
- Send method
-
getChatId
- Returns:
- Unique identifier for the target chat or username of the target channel (in the format @channelusername)
-
setChatId
- Parameters:
chatId
- Unique identifier for the target chat or username of the target channel (in the format @channelusername)
-
getDisableNotification
- Returns:
- Whether the message should be send silently. Users will receive a notification with no sound.
-
setDisableNotification
- Parameters:
disableNotification
- true to sends the message silently. Users will receive a notification with no sound.
-
getReplyToMessageId
- Returns:
- If the message is a reply, ID of the original message.
-
setReplyToMessageId
- Parameters:
replyToMessageId
- If the message is a reply, ID of the original message.
-
getReplyMarkup
- Returns:
- A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
-
setReplyMarkup
- Parameters:
replyMarkup
- A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
-