import time
from telethon.tl.functions.account import UpdateProfileRequest
from telethon.sync import TelegramClient
import vk_api
import random
api_id = '' # https://my.telegram.org/apps
api_hash = ''
client = TelegramClient("my_session", api_id, api_hash)
token = ""
session = vk_api.VkApi(token = token)
api = session.get_api() # https://vkhost.github.io/ - Получать токен от Kate Mobile
lis = ["", "", "", "", ""]
while True:
with client:
text = random.choice(lis) + "Слушает: " + api.status.get()['text']
client(
UpdateProfileRequest(last_name=text)
)
print(text)
time.sleep(18)