mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
Implement Dialogue::chat_id
This commit is contained in:
parent
7abbd2dc09
commit
c52325b788
1 changed files with 5 additions and 0 deletions
|
@ -124,6 +124,11 @@ where
|
|||
Self { storage, chat_id, _phantom: PhantomData }
|
||||
}
|
||||
|
||||
/// Returns a chat ID associated with this dialogue.
|
||||
pub fn chat_id(&self) -> i64 {
|
||||
self.chat_id
|
||||
}
|
||||
|
||||
/// Retrieves the current state of the dialogue or `None` if there is no
|
||||
/// dialogue.
|
||||
pub async fn get(&self) -> Result<Option<D>, S::Error> {
|
||||
|
|
Loading…
Reference in a new issue