33 lines
1.0 KiB
Rust
33 lines
1.0 KiB
Rust
// Модули
|
|
pub mod auth;
|
|
mod chat_helpers; // Chat management helpers
|
|
pub mod chats;
|
|
pub mod client;
|
|
mod client_impl; // Private module for trait implementation
|
|
pub(crate) mod message_conversion; // Message conversion utilities (for messages.rs)
|
|
mod message_converter; // Message conversion utilities (for client.rs)
|
|
pub mod messages;
|
|
pub mod reactions;
|
|
pub mod r#trait;
|
|
pub mod types;
|
|
mod update_handlers; // Update handlers extracted from client
|
|
pub mod users;
|
|
|
|
// Экспорт основных типов
|
|
pub use auth::AuthState;
|
|
pub use client::TdClient;
|
|
pub use r#trait::TdClientTrait;
|
|
#[allow(unused_imports)]
|
|
pub use types::{
|
|
ChatInfo, FolderInfo, MediaInfo, MessageBuilder, MessageInfo, NetworkState, PhotoDownloadState,
|
|
PhotoInfo, PlaybackState, PlaybackStatus, ProfileInfo, ReplyInfo, UserOnlineStatus,
|
|
VoiceDownloadState, VoiceInfo,
|
|
};
|
|
|
|
#[cfg(feature = "images")]
|
|
pub use types::ImageModalState;
|
|
pub use users::UserCache;
|
|
|
|
// Re-export ChatAction для удобства
|
|
pub use tdlib_rs::enums::ChatAction;
|