- Update my_listings command structure and keyboard handling - Enhance new_listing workflow with improved callbacks and handlers - Refactor database user model and keyboard utilities - Add new handler utilities module - Update main bot configuration and start command
31 lines
973 B
Rust
31 lines
973 B
Rust
//! New listing creation wizard module
|
|
//!
|
|
//! This module provides a complete wizard interface for creating new listings.
|
|
//! It's organized into logical submodules with clear responsibilities:
|
|
//!
|
|
//! - `handlers`: Main handler functions for teloxide
|
|
//! - `callbacks`: Callback query processing
|
|
//! - `field_processing`: Core field validation and update logic
|
|
//! - `messages`: Centralized message constants and generation
|
|
//! - `ui`: Display and summary functions
|
|
//! - `keyboard`: Button and keyboard definitions
|
|
//! - `types`: Type definitions and state management
|
|
//! - `validations`: Input validation functions
|
|
|
|
mod callbacks;
|
|
mod field_processing;
|
|
mod handler_factory;
|
|
mod handlers;
|
|
mod keyboard;
|
|
pub mod messages;
|
|
#[cfg(test)]
|
|
mod tests;
|
|
mod types;
|
|
mod ui;
|
|
mod validations;
|
|
|
|
// Re-export the main handler for external use
|
|
pub use handler_factory::new_listing_handler;
|
|
pub use handlers::{enter_edit_listing_draft, enter_select_new_listing_type};
|
|
pub use types::*;
|