Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
318 B
2
Indexable
Never
channel: Channel = await utils.get_entity_from_channel(entity_param, client)
if channel is not None:
    try:
        await client(LeaveChannelRequest(channel))
        await client(DeleteHistoryRequest(peer=channel, max_id=0, just_clear=False, revoke=True))
    except Exception as e:
        logging.error(e.args[0])