Fix RON schema, prettify doc comments

This commit is contained in:
jc 2024-08-24 16:29:28 +04:00
parent 4b05e9dd69
commit b15ba1d31a
3 changed files with 16 additions and 12 deletions

View file

@ -4041,11 +4041,13 @@ Schema(
Param(
name: "currency",
ty: String,
descr: Doc(md: "Three-letter ISO 4217 currency code, see [more on currencies]. Pass `XTR` for payments in [Telegram Stars]."),
md_links: {
"more on currencies":"https://core.telegram.org/bots/payments#supported-currencies",
"Telegram Stars": "Telegram Stars"
}
descr: Doc(
md: "Three-letter ISO 4217 currency code, see [more on currencies]. Pass `XTR` for payments in [Telegram Stars].",
md_links: {
"more on currencies":"https://core.telegram.org/bots/payments#supported-currencies",
"Telegram Stars": "https://t.me/BotNews/90"
}
),
),
Param(
name: "prices",
@ -4191,11 +4193,13 @@ Schema(
Param(
name: "currency",
ty: String,
descr: Doc(md: "Three-letter ISO 4217 currency code, see [more on currencies]. Pass `XTR` for payments in [Telegram Stars]."),
md_links: {
"more on currencies":"https://core.telegram.org/bots/payments#supported-currencies",
"Telegram Stars": "Telegram Stars"
}
descr: Doc(
md: "Three-letter ISO 4217 currency code, see [more on currencies]. Pass `XTR` for payments in [Telegram Stars].",
md_links: {
"more on currencies":"https://core.telegram.org/bots/payments#supported-currencies",
"Telegram Stars": "https://t.me/BotNews/90"
}
),
),
Param(
name: "prices",

View file

@ -15,7 +15,7 @@ pub struct PreCheckoutQuery {
pub from: User,
/// Three-letter ISO 4217 currency code, see [more on currencies]. Pass
/// "XTR" for payments in [Telegram Stars].
/// `XTR` for payments in [Telegram Stars].
///
/// [more on currencies]: https://core.telegram.org/bots/payments#supported-currencies
/// [Telegram Stars]: https://t.me/BotNews/90

View file

@ -9,7 +9,7 @@ use crate::types::OrderInfo;
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
pub struct SuccessfulPayment {
/// Three-letter ISO 4217 currency code, see [more on currencies]. Pass
/// "XTR" for payments in [Telegram Stars].
/// `XTR` for payments in [Telegram Stars].
///
/// [more on currencies]: https://core.telegram.org/bots/payments#supported-currencies
/// [Telegram Stars]: https://t.me/BotNews/90