Код: Выделить всё
from telethon import TelegramClient, utils, functions
from telethon.tl.types import InputChannel
channel: InputChannel = utils.get_input_channel(await client.get_input_entity('https://t.me/joinchat/xxxxx'))
print(await client(functions.channels.UpdateUsernameRequest(channel=channel, username='fuckdadasfa21')))
Подробнее здесь: https://stackoverflow.com/questions/623 ... el-private
Мобильная версия