mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
clean code
This commit is contained in:
@@ -1,14 +1,7 @@
|
|||||||
# import json
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
|
||||||
# with open("config.json") as config_file:
|
|
||||||
# config = json.load(config_file)
|
|
||||||
|
|
||||||
# admin = config["telegram"]["admin"]
|
|
||||||
# token = config["telegram"]["token"]
|
|
||||||
|
|
||||||
BOT_TOKEN = os.getenv("BOT_TOKEN")
|
BOT_TOKEN = os.getenv("BOT_TOKEN")
|
||||||
ADMIN = os.getenv("ADMIN").split(",")
|
ADMIN = os.getenv("ADMIN").split(",")
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from aiohttp import ClientSession
|
from aiohttp import ClientSession
|
||||||
from telegram import Update, Chat, ChatMemberAdministrator
|
from telegram import Update, Chat
|
||||||
from telegram.constants import ParseMode, ChatAction
|
from telegram.constants import ParseMode, ChatAction
|
||||||
from telegram.ext import (
|
from telegram.ext import (
|
||||||
Application,
|
Application,
|
||||||
|
|||||||
Reference in New Issue
Block a user