mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-11 04:21:12 +01:00
Merge pull request #330 from teloxide/clarify-storage-purpose
Clarify the purpose of Storage in the docs
This commit is contained in:
commit
ceeb471294
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ pub use sqlite_storage::{SqliteStorage, SqliteStorageError};
|
|||
/// You can implement this trait for a structure that communicates with a DB and
|
||||
/// be sure that after you restart your bot, all the dialogues won't be lost.
|
||||
///
|
||||
/// `Storage` is used only to store dialogue states, i.e. it can't be used as a
|
||||
/// generic database.
|
||||
///
|
||||
/// Currently we support the following storages out of the box:
|
||||
///
|
||||
/// - [`InMemStorage`] - a storage based on a simple hash map
|
||||
|
|
Loading…
Reference in a new issue