deltachat-bot / deltabot

Delta.Chat bot written in Python
Mozilla Public License 2.0
33 stars 18 forks source link

system messages processed as incoming messages #26

Closed adbenitez closed 4 years ago

adbenitez commented 4 years ago

account hook ac_incoming_message isn't triggered on member added/removed events, but since deltabot uses account.get_fresh_messages() fresh member added/removed events are returned and processed as incoming messages

hpk42 commented 4 years ago

As discussed on chat, you can call message.is_system_message() within a deltabot_incoming_message hook implementation.

see https://py.delta.chat/api.html#deltachat.message.Message.is_system_message