from pyrogram import Client, filters
import time
from pyrogram.raw import functions
api_id = 123456
api_hash = 'qwert1234qwerty1234qeerty'
app = Client("my_account")
with Client("my_account") as app:
while True:
time.sleep(5)
app.send(functions.account.UpdateProfile(first_name="Oldonmag."))
time.sleep(5)
app.send(functions.account.UpdateProfile(first_name="Oldonmag.."))
time.sleep(5)
app.send(functions.account.UpdateProfile(first_name="Oldonmag..."))
app.run()