from telethon.sync import TelegramClient, events
from time import sleep
api_id = 0000000
api_hash = "0000"#Таки да, тут были токены
client = TelegramClient(str(api_id), api_id, api_hash)
client.start()
@client.on(events.NewMessage)
def normal_handler(event):
print(event)
def main():
sleep(60)
if __name__ == '__main__':
main()
sleep(60)