from integrations.gigachat_api_client import GigaChatManager from src.bot.telegram_userbot import TelegramUserBot from src.core.configuration import config def main() -> None: """ Entry point for starting the Telegram user bot. """ # Load API credentials and configuration api_id = config.API_ID api_hash = config.API_HASH api_token = config.API_GIGACHAT_TOKEN # Initialize GigaChatManager gigachat_manager = GigaChatManager(api_token=api_token) # Initialize and run the Telegram user bot bot = TelegramUserBot( session_name="userbot", api_id=api_id, api_hash=api_hash, gigachat_manager=gigachat_manager ) bot.run() if __name__ == "__main__": main()