mirror of https://github.com/coddrago/Heroku
added convertion hikka- chats
parent
4fef698b1a
commit
b7e024b782
|
@ -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())}
|
||||
|
|
Loading…
Reference in New Issue