// WARNING: THIS CODE IS AUTOGENERATED.
// DO NOT EDIT!!!
use crate::types::MessageEntity;
use serde::{Deserialize, Serialize};
/// This object contains information about the quoted part of a message that is replied to by the given message.
/// <https://core.telegram.org/bots/api#textquote>
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct TextQuote {
/// Text of the quoted part of a message that is replied to by the given message
pub text: String,
/// Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
#[serde(skip_serializing_if = "Option::is_none")]
pub entities: Option<Vec<MessageEntity>>,
/// Approximate quote position in the original message in UTF-16 code units as specified by the sender
pub position: i64,
/// Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
#[serde(skip_serializing_if = "Option::is_none")]
pub is_manual: Option<bool>,
}