SendMessageReq

final case class SendMessageReq(chatId: ChatId, text: String, messageThreadId: Option[Int], parseMode: Option[ParseMode], entities: List[MessageEntity], disableWebPagePreview: Option[Boolean], disableNotification: Option[Boolean], protectContent: Option[Boolean], replyToMessageId: Option[Int], allowSendingWithoutReply: Option[Boolean], replyMarkup: Option[KeyboardMarkup])
Value parameters:
allowSendingWithoutReply

Pass True if the message should be sent even if the specified replied-to message is not found

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

disableNotification

Sends the message silently. Users will receive a notification with no sound.

disableWebPagePreview

Disables link previews for links in this message

entities

A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode

messageThreadId

Unique identifier for the target message thread (topic) of the forum; for forum supergroups only

parseMode

Mode for parsing entities in the message text. See formatting options for more details.

protectContent

Protects the contents of the sent message from forwarding and saving

replyMarkup

Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

replyToMessageId

If the message is a reply, ID of the original message

text

Text of the message to be sent, 1-4096 characters after entities parsing

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product