From cb00027ff89055a504b9cf41529926d24b8a1907 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 18 Oct 2022 15:24:38 +0000 Subject: [PATCH] Document how to send a named deck list --- src/bin/patched_porobot_telegram.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bin/patched_porobot_telegram.rs b/src/bin/patched_porobot_telegram.rs index 7abdd6a..7157406 100644 --- a/src/bin/patched_porobot_telegram.rs +++ b/src/bin/patched_porobot_telegram.rs @@ -72,7 +72,7 @@ //! //! Since [@patchedporobot] uses [`tantivy`] internally, you might find more information on even more advanced queries in the [documentation of their `QueryParser`](tantivy::query::QueryParser)! //! -//! ### Deck queries +//! ### Deck parsing //! //! You can have [@patchedporobot] display a deck and its cards by pasting the deck code after the bot's username: //! @@ -82,6 +82,15 @@ //! //! Then, select the "Deck with N cards" option to send the deck's card list in the chat! //! +//! #### Named decks +//! +//! Optionally, you may add a name to your deck, which will be displayed above the deck code: +//! +//! ```text +//! @patchedporobot CIBQCAICAQAQGBQIBEBAMBAJBMGBUHJNGE4AEAIBAIYQEAQGEU2QCAIBAIUQ Gimbo's Depths +//! ``` +//! +//! If entered correctly, the bot will display a slightly different option containing the deck's name (_Deck "NAME" with N cards_), which you can check before the message is sent to the chat. //! //! [@patchedporobot]: https://t.me/patchedporobot