YouTube_Creator_MetaData / run_telegram_bot.py
@woai
🧹 Major code cleanup and internationalization - Remove Russian comments/strings, translate UI to English, clean linter errors, remove hardcoded tokens, delete test files. Ready for production deployment
e775565
#!/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)