mirror of
https://github.com/andwati/travel-inspo.git
synced 2026-10-18 02:02:52 +00:00
17 lines
359 B
Python
17 lines
359 B
Python
import os
|
|
from dotenv import load_dotenv
|
|
from src.bot import main as run_bot
|
|
|
|
|
|
load_dotenv()
|
|
|
|
if __name__ == "__main__":
|
|
bot_token = os.getenv("TELEGRAM_BOT_TOKEN")
|
|
|
|
if not bot_token:
|
|
raise ValueError("TELEGRAM_BOT_TOKEN is not set in the .env file")
|
|
|
|
print("Starting bot...")
|
|
run_bot(bot_token)
|
|
print("Bot started successfully.")
|