Skip to content

0x1381/TelegramProfileBot

Repository files navigation

Clock profile telegram



🛠 Installation & Set Up

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 change api_id and api_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

Customization

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)

Screenshot

Server and Hosting

You can use Hiroka for hosting and server

Deploy

Attention

- Please do not copy this
- I have spent hours on this project
- Please FORK this repo don't copy 
- داوش بخای اسکی بری مامانت صلوات ختم میکنم

Manufacturer

+ Afshin Ataei

Contact us :

Telegram
Instagram

About

Clock on profile picture in telegram

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published