Zxce3 / userbot

Protected member accessed from outside the class PYL-W0212
Bug risk
Minor
a year agoa year old
Access to a protected member _client of a client class
 59
 60    await asyncio.sleep(1)
 61    # noinspection PyProtectedMember
 62    response = await message._client.get_history(message.chat.id, limit=1) 63    seconds_waiting = 0
 64
 65    while response[0].from_user.is_self:
Access to a protected member _client of a client class
 69
 70        await asyncio.sleep(1)
 71        # noinspection PyProtectedMember
 72        response = await message._client.get_history(message.chat.id, limit=1) 73
 74    interact_with_to_delete.append(message.message_id)
 75    interact_with_to_delete.append(response[0].message_id)