mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +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(
|
Param(
|
||||||
name: "currency",
|
name: "currency",
|
||||||
ty: String,
|
ty: String,
|
||||||
descr: Doc(md: "Three-letter ISO 4217 currency code, see [more on currencies]. Pass `XTR` for payments in [Telegram Stars]."),
|
descr: Doc(
|
||||||
md_links: {
|
md: "Three-letter ISO 4217 currency code, see [more on currencies]. Pass `XTR` for payments in [Telegram Stars].",
|
||||||
"more on currencies":"https://core.telegram.org/bots/payments#supported-currencies",
|
md_links: {
|
||||||
"Telegram Stars": "Telegram Stars"
|
"more on currencies":"https://core.telegram.org/bots/payments#supported-currencies",
|
||||||
}
|
"Telegram Stars": "https://t.me/BotNews/90"
|
||||||
|
}
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Param(
|
Param(
|
||||||
name: "prices",
|
name: "prices",
|
||||||
|
@ -4191,11 +4193,13 @@ Schema(
|
||||||
Param(
|
Param(
|
||||||
name: "currency",
|
name: "currency",
|
||||||
ty: String,
|
ty: String,
|
||||||
descr: Doc(md: "Three-letter ISO 4217 currency code, see [more on currencies]. Pass `XTR` for payments in [Telegram Stars]."),
|
descr: Doc(
|
||||||
md_links: {
|
md: "Three-letter ISO 4217 currency code, see [more on currencies]. Pass `XTR` for payments in [Telegram Stars].",
|
||||||
"more on currencies":"https://core.telegram.org/bots/payments#supported-currencies",
|
md_links: {
|
||||||
"Telegram Stars": "Telegram Stars"
|
"more on currencies":"https://core.telegram.org/bots/payments#supported-currencies",
|
||||||
}
|
"Telegram Stars": "https://t.me/BotNews/90"
|
||||||
|
}
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Param(
|
Param(
|
||||||
name: "prices",
|
name: "prices",
|
||||||
|
|
|
@ -15,7 +15,7 @@ pub struct PreCheckoutQuery {
|
||||||
pub from: User,
|
pub from: User,
|
||||||
|
|
||||||
/// Three-letter ISO 4217 currency code, see [more on currencies]. Pass
|
/// 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
|
/// [more on currencies]: https://core.telegram.org/bots/payments#supported-currencies
|
||||||
/// [Telegram Stars]: https://t.me/BotNews/90
|
/// [Telegram Stars]: https://t.me/BotNews/90
|
||||||
|
|
|
@ -9,7 +9,7 @@ use crate::types::OrderInfo;
|
||||||
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct SuccessfulPayment {
|
pub struct SuccessfulPayment {
|
||||||
/// Three-letter ISO 4217 currency code, see [more on currencies]. Pass
|
/// 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
|
/// [more on currencies]: https://core.telegram.org/bots/payments#supported-currencies
|
||||||
/// [Telegram Stars]: https://t.me/BotNews/90
|
/// [Telegram Stars]: https://t.me/BotNews/90
|
||||||
|
|
Loading…
Reference in a new issue