client = TelegramClient(username, api_id, api_hash)
client.connect()
with TelegramClient(username, api_id, api_hash) as client:
result = client(functions.channels.UpdateUsernameRequest(
channel = str(channeluser),
username=""
))
while True:
try:
bot.polling(none_stop=True)
except Exception as e:
print(e)
time.sleep(15)