mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-23 01:54:22 +00:00
Document ::telegram::inline::deck_to_inlinequeryresult
This commit is contained in:
parent
39dbc3f1b7
commit
0119dbc515
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,7 @@ use teloxide::types::{
|
||||||
InputMessageContentText, ParseMode,
|
InputMessageContentText, ParseMode,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Converts a [Card] into a [InlineQueryResult].
|
/// Convert a [Card] into a [InlineQueryResult].
|
||||||
pub fn card_to_inlinequeryresult(
|
pub fn card_to_inlinequeryresult(
|
||||||
globals: &LocalizedGlobalsIndexes,
|
globals: &LocalizedGlobalsIndexes,
|
||||||
card: &Card,
|
card: &Card,
|
||||||
|
@ -43,6 +43,7 @@ pub fn card_to_inlinequeryresult(
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Convert a [Deck] into a [InlineQueryResult].
|
||||||
pub fn deck_to_inlinequeryresult(index: &CardIndex, deck: &Deck) -> InlineQueryResult {
|
pub fn deck_to_inlinequeryresult(index: &CardIndex, deck: &Deck) -> InlineQueryResult {
|
||||||
let code = deck
|
let code = deck
|
||||||
.to_code(DeckCodeFormat::F1)
|
.to_code(DeckCodeFormat::F1)
|
||||||
|
|
Loading…
Reference in a new issue