serenity-77
serenity-77
> `fire()` does indeed just "blindly" iterate over its listeners .. so it's not re-entrant (in the sense used above). An easy fix would be to iterate over a copy...
Upload once and cache the upload result
Whatsmeow seems to cache the message before send to facilitate message retry in the future. This maybe happen after you send a message and then restarted the connection, this will...
could you explain in more detail?
[Twisted](https://twistedmatrix.com/trac/) is an event driven networking engine and provide a deferred that hold an eventual result much like Promise or Future. `connection.relayMessage` return a deferred that fired with the message...
when accessing message instance attributes you can directly use `message['something]` instead of directly using `message._attrs` it will return `None` if key not found
> I use `message._attrs` to be able to call the `.get` function, if using the `.get` function, if the key doesn't exist it can be set to `False` or something...
oke oke but that `_attrs` suppose to be private
> so? should i create a new function in the class `WhatsappMessage` to access `_attrs` and to keep `_attrs` private? Like this > > ```python > class WhatsappMessage: > def...