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
from datetime import datetime, timedelta | |
from sys import argv, exit | |
from telethon import TelegramClient, events, connection | |
from telethon.tl.types import UserStatusRecently, UserStatusEmpty, UserStatusOnline, UserStatusOffline, PeerUser, PeerChat, PeerChannel | |
from time import mktime, sleep | |
import telethon.sync | |
from threading import Thread | |
import collections | |
DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S' |