#!/usr/bin/env python3 """ TubeMeta Telegram Bot Launcher Run this script to start the Telegram bot that integrates with the MCP server. """ import asyncio import sys import logging from telegram_bot import main def setup_logging(): """Setup logging configuration""" logging.basicConfig( level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', handlers=[ logging.FileHandler('telegram_bot.log'), logging.StreamHandler(sys.stdout) ] ) if __name__ == "__main__": print("šŸ¤– Starting TubeMeta Telegram Bot...") print("šŸ“‹ Make sure your MCP server is running at: https://youtube-bot.tuttech.net") print("šŸ“± Bot username: @tubemeta_bot") print("šŸ”— Bot link: https://t.me/tubemeta_bot") print("ā¹ļø Press Ctrl+C to stop\n") setup_logging() try: asyncio.run(main()) except KeyboardInterrupt: print("\nšŸ›‘ Bot stopped by user") except Exception as e: print(f"āŒ Error starting bot: {e}") logging.error(f"Bot startup error: {e}") sys.exit(1)