mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 11:43:57 +01:00
fix docs
This commit is contained in:
parent
21ecc39dc7
commit
ab76ec07f2
2 changed files with 4 additions and 4 deletions
|
@ -24,12 +24,12 @@ pub struct InlineQueryResultCachedGif {
|
||||||
/// Caption of the GIF file to be sent, 0-1024 characters.
|
/// Caption of the GIF file to be sent, 0-1024 characters.
|
||||||
pub caption: Option<String>,
|
pub caption: Option<String>,
|
||||||
|
|
||||||
/// Send [`ParseMode::Markdown`] or [`ParseMode::HTML`], if you want
|
/// Send [`ParseMode::Markdown`] or [`ParseMode::Html`], if you want
|
||||||
/// Telegram apps to show [bold, italic, fixed-width text or inline
|
/// Telegram apps to show [bold, italic, fixed-width text or inline
|
||||||
/// URLs] in the media caption.
|
/// URLs] in the media caption.
|
||||||
///
|
///
|
||||||
/// [`ParseMode::Markdown`]: crate::types::ParseMode::Markdown
|
/// [`ParseMode::Markdown`]: crate::types::ParseMode::Markdown
|
||||||
/// [`ParseMode::HTML`]: crate::types::ParseMode::HTML
|
/// [`ParseMode::Html`]: crate::types::ParseMode::Html
|
||||||
/// [bold, italic, fixed-width text or inline URLs]: https://core.telegram.org/bots/api#formatting-options
|
/// [bold, italic, fixed-width text or inline URLs]: https://core.telegram.org/bots/api#formatting-options
|
||||||
pub parse_mode: Option<ParseMode>,
|
pub parse_mode: Option<ParseMode>,
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ use serde::{Deserialize, Serialize};
|
||||||
/// ignored.
|
/// ignored.
|
||||||
///
|
///
|
||||||
/// ## HTML style
|
/// ## HTML style
|
||||||
/// To use this mode, pass [`HTML`] in the `parse_mode` field.
|
/// To use this mode, pass [`Html`] in the `parse_mode` field.
|
||||||
/// The following tags are currently supported:
|
/// The following tags are currently supported:
|
||||||
/// ````text
|
/// ````text
|
||||||
/// <b>bold</b>, <strong>bold</strong>
|
/// <b>bold</b>, <strong>bold</strong>
|
||||||
|
@ -123,7 +123,7 @@ use serde::{Deserialize, Serialize};
|
||||||
/// `*2*\**2=4*` for bold `2*2=4`.
|
/// `*2*\**2=4*` for bold `2*2=4`.
|
||||||
///
|
///
|
||||||
/// [`MarkdownV2`]: ParseMode::MarkdownV2
|
/// [`MarkdownV2`]: ParseMode::MarkdownV2
|
||||||
/// [`HTML`]: ParseMode::HTML
|
/// [`Html`]: ParseMode::Html
|
||||||
/// [`Markdown`]: ParseMode::Markdown
|
/// [`Markdown`]: ParseMode::Markdown
|
||||||
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
||||||
pub enum ParseMode {
|
pub enum ParseMode {
|
||||||
|
|
Loading…
Reference in a new issue