This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
if sys.version_info[0] < 3 or sys.version_info[1] < 6: | |
LOGGER.error("You MUST have a python version of at least 3.6!") | |
quit(1) | |
from telethon import TelegramClient, events | |
from async_generator import aclosing | |
from telethon.tl.functions.channels import InviteToChannelRequest | |
rom telethon.tl.functions.channels import GetParticipantsRequest | |
from telethon.tl.types import ChannelParticipantsSearch | |
api_id=os.environ['API_KEY'] |