// This file is auto generated by `cg` (24572cd + local changes). // **DO NOT EDIT THIS FILE**, // edit `cg` instead. use serde::Serialize; use crate::types::{ChatId, Message, ParseMode, ReplyMarkup}; impl_payload! { /// Use this method to send text messages. On success, the sent [`Message`] is returned. /// /// [`Message`]: crate::types::Message #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)] pub SendMessage (SendMessageSetters) => Message { required { /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`) pub chat_id: ChatId [into], /// Text of the message to be sent, 1-4096 characters after entities parsing pub text: String [into], } optional { /// Mode for parsing entities in the message text. See [formatting options] for more details. /// /// [formatting options]: https://core.telegram.org/bots/api#formatting-options pub parse_mode: ParseMode, /// Disables link previews for links in this message pub disable_web_page_preview: bool, /// Sends the message [silently]. Users will receive a notification with no sound. /// /// [silently]: https://telegram.org/blog/channels-2-0#silent-messages pub disable_notification: bool, /// If the message is a reply, ID of the original message pub reply_to_message_id: i32, /// 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. /// /// [inline keyboard]: https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating /// [custom reply keyboard]: https://core.telegram.org/bots#keyboards pub reply_markup: ReplyMarkup [into], } } }