diff --git a/hikka/utils.py b/hikka/utils.py index 06e1473..0f7f0c1 100644 --- a/hikka/utils.py +++ b/hikka/utils.py @@ -754,6 +754,10 @@ async def asset_channel( ): return client._channels_cache[title]["peer"], False + # legacy heroku / hikka chats conversion to heroku + if title.startswith("hikka-"): + title = title.replace("hikka-", "heroku-") + async for d in client.iter_dialogs(): if d.title == title: client._channels_cache[title] = {"peer": d.entity, "exp": int(time.time())}