org.telegram.telegrambots.api.methods.send.SendMessage Maven / Gradle / Ivy
package org.telegram.telegrambots.api.methods.send;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
* Use this method to send text messages. On success, the sent Message is
* returned.
*
* @author Lev Nadeinsky
* @author Ruben Bermudez
* @date 2016-11-21
*/
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SendMessage extends ApiMethod {
/**
* Unique identifier for the target chat or username of the target channel
* (in the format @channelusername)
*/
String chatId;
/** Text of the message to be sent */
String text;
/**
* Send Markdown or HTML, if you want Telegram apps to show bold, italic,
* fixed-width text or inline URLs in your bot's message.
*/
String parseMode;
/** Disables link previews for links in this message */
Boolean disableWebPagePreview;
/**
* Sends the message silently. iOS users will not receive a notification,
* Android users will receive a notification with no sound.
*/
Boolean disableNotification;
/** If the message is a reply, ID of the original message */
Integer replyToMessageId;
/**
* Additional interface options. A JSON-serialized object for an inline
* keyboard, custom reply keyboard, instructions to hide reply keyboard or
* to force a reply from the user. FIXME type
*/
Object replyMarkup;
}