I’d like to send status messages from e.g. homeassistant and icinga2, to a DeltaChat group. What is the best practice for this since version 2? Should I create an account via the desktop app, then export the public key from SQLite and send it as a “normal” email, or should I program a bot for this? Or is there a current DeltaChat CLI that works with v2? Or is there a completely different solution?
There is a cmsend for an example of sending with chatmail core, you can use it as a starting point. You can make it join the group with cmsend --join ... and then send messages to the group this way. This should work as is already.
I think it is better to turn the bot into a long-running process though so the bot listens to incoming messages and can e.g. notice when a new member has been added to the group. And maybe instead of the group use the channel. But this is something you can do later, cmsend is enough to get started with sending notifications.
If you are fine with sending not to the group, but e.g. as 1:1 message to yourself, then constructing a normal OpenPGP encrypted message and sending it is good enough. Tracking the group, keys and addresses of the members and so on is not that easy, for that better build a bot.