Adds Docker support, updates README.md and other few optimizations

This commit is contained in:
Matheus Albino
2024-08-12 12:26:50 -03:00
parent 39f3f9c5db
commit 2454a8874b
6 changed files with 77 additions and 0 deletions

10
main.py
View File

@@ -1,9 +1,19 @@
import os
from getpass import getpass
from urllib.parse import urlparse
from dotenv import dotenv_values
from telethon import TelegramClient, events
if (not os.path.isfile(".env")):
# raise Exception("No .env file configuration. Please read \"README.md\" file")
api_id_user=getpass("Please enter your API ID: ")
api_hash_user=getpass("Please enter your API Hash: ")
bot_token_user=getpass("Please enter your Bot Token: ")
config = dotenv_values(".env")
api_id = config["api_id"]