mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 06:25:10 +01:00
Fix RON schema, prettify doc comments
This commit is contained in:
parent
4b05e9dd69
commit
b15ba1d31a
3 changed files with 16 additions and 12 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue