1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Convert Telegram Desktop `tdata` directories to and from Telethon and
//! grammers SQLite sessions.
//!
//! The crate performs local file conversion only; it never connects to Telegram.
//! Session files contain authorization keys and must be handled as credentials.
//!
//! # Example
//!
//! ```no_run
//! use grammpars::{SessionFormat, TDesktop};
//!
//! # fn main() -> grammpars::Result<()> {
//! let mut desktop = TDesktop::new("./tdata")?;
//! desktop.load_tdata()?;
//! desktop.export_session("account.session", SessionFormat::Telethon, 0)?;
//! # Ok(())
//! # }
//! ```
/// Session format types.
/// Cryptographic primitives used by Telegram Desktop local storage.
/// Crate error and result types.
/// grammers SQLite session support.
/// Minimal Qt data-stream compatibility types.
/// Telegram Desktop storage types.
/// Telethon SQLite session support.
/// Hashing utilities.
pub use SessionFormat;
pub use ;
pub use TDesktop;