New attribute on Messages: frm_owner, indicating a message coming from the bot owner
This commit is contained in:
parent
f8884a53ec
commit
5e097b5415
2 changed files with 5 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ class AbstractMessage:
|
|||
self._to_response = to_response if to_response is None or isinstance(to_response, list) else [ to_response ]
|
||||
self.frm = frm # None allowed when it designate this bot
|
||||
|
||||
self.frm_owner = False # Filled later, in consumer
|
||||
|
||||
|
||||
@property
|
||||
def to_response(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue