mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-10 20:12:25 +01:00
7 lines
247 B
Text
7 lines
247 B
Text
use teloxide::dispatching2::dialogue::{RedisStorage, serializer::Bincode};
|
|
|
|
type MyStorage = RedisStorage<Bincode>;
|
|
|
|
async fn open_storage() -> std::sync::Arc<MyStorage> {
|
|
RedisStorage::open("redis://127.0.0.1:6379", Bincode).await.unwrap()
|
|
}
|