Skip to content

Instantly share code, notes, and snippets.

View WeslenPy's full-sized avatar
🏠
Working from home

WeslenPy WeslenPy

🏠
Working from home
View GitHub Profile
@WeslenPy
WeslenPy / requirements.txt
Last active October 5, 2025 16:50
TranslateAI
requests==2.32.3
@WeslenPy
WeslenPy / layer_receive.py
Last active January 12, 2026 06:34
fix session bad mac
class AxolotlReceivelayer(AxolotlBaseLayer):
def __init__(self):
super(AxolotlReceivelayer, self).__init__()
self.v2Jids = [] #people we're going to send v2 enc messages
self.sessionCiphers = {}
self.groupCiphers = {}
self.pendingIncomingMessages = {} #(jid, participantJid?) => message
self._retries = {}