When I try to run code which is accessing my telegram account via an API, it runs fine until following error.
A wait of 4013 seconds is required (caused by ResolveUsernameRequest)
My code is following:
from telethon.sync import TelegramClient
from telethon import functions, types
api_id = xxxxxxx
api_hash = '468f15380793dxxxxxxxxxxxxxxx'
with TelegramClient('sessionx', api_id, api_hash) as client:
result = client(functions.channels.GetFullChannelRequest(
channel='channelname'
))
print(result.stringify())
Is there any solution, so I could get rid of it? What changes should I made into my code.
You can't. Its limitation from telegram there are limitations on using GetFullChannelRequest
if you exceed those limitaions you will face floodwait issues