This file contains hidden or 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 time | |
| from telethon import TelegramClient, events | |
| # sample API_ID from https://github.com/telegramdesktop/tdesktop/blob/f98fdeab3fb2ba6f55daf8481595f879729d1b84/Telegram/SourceFiles/config.h#L220 | |
| # or use your own | |
| api_id = 17349 | |
| api_hash = '344583e45741c457fe1862106095a5eb' | |
| # fill in your own details here | |
| phone = 'YOUR_PHONE_NUMBER' |
This file contains hidden or 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 datetime | |
| class Timer(object): | |
| """A simple timer class""" | |
| def __init__(self): | |
| pass | |
| def start(self): | |
| """Starts the timer""" |