git clone https://github.com/0x1381/Clock-profile-telegram/
cd Clock-profile-telegram
pip install -r requirements.txt
Go to my.telegram.org
then click API development tools
and receive api_id and api_hash
- Open
config.py
, and changeapi_id
andapi_hash
.
api_id = 1205106
api_hash = '40e24db52fa79aff3a9aa308fc3e6727'
session_name = '0x1381'
- Then open
main.py
, remove this line from the hashtag.
#with TelegramClient(StringSession(), config.api_id, config.api_hash) as client:
#print(client.session.save())
to
with TelegramClient(StringSession(), config.api_id, config.api_hash) as client:
print(client.session.save())
then hashtag line 17 18 19
#string = ''
#client = TelegramClient(StringSession(string), config.api_id, config.api_hash)
#client.start()
- Then save file and run
main.py
. - Now copy the StringSession and open the
main.py
again and put it in the string variable.
string = 'StringSession'
- then reset line 17 18 19
string = 'StringSession'
client = TelegramClient(StringSession(string), config.api_id, config.api_hash)
client.start()
and hashtag line 13 14
#with TelegramClient(StringSession(), config.api_id, config.api_hash) as client:
#print(client.session.save())
- Everything is ready to run the file
python main.py
Go to the resources
path to personalize your profile picture and clock color
- Open the
main.py
to change the picture
photo_filename = '/resources/YourFileName'
image_text_color = 'greenyellow' #ff0800
- And you can go to the
utils.py
file to change the font
font = ImageFont.truetype(font='resources/YourFont.TTF', size=150)
You can use Hiroka for hosting and server
- Please do not copy this
- I have spent hours on this project
- Please FORK this repo don't copy
- داوش بخای اسکی بری مامانت صلوات ختم میکنم
+ Afshin Ataei
Contact us :