-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a quickstart guide on bot development #45
Conversation
quickstart.md
Outdated
[`account.run_account()`](https://py.delta.chat/api.html#deltachat.account.Account.run_account) | ||
will run the account, and configure it if necessary (e.g. look up the mail | ||
servers of your provider). | ||
|
||
[`account.wait_shutdown()`](https://py.delta.chat/api.html#deltachat.account.Account.wait_shutdown) | ||
waits until the account quits running for some reason. This is necessary here | ||
so the script doesn't quit directly, but stays open as long as the bot is | ||
running. We want the bot to reply to our messages forever, after all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe move the text to comments and just have a list of links after it? If we even need the links to the code reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are now not directly after each other, but are explaining a code snippet directly - I think it makes sense now as it is.
The page can be previewed here: https://staging.bots.delta.chat/45/quickstart.html |
@missytake This does not have to wait for deltachat/deltachat-core-rust#3734. Except for the need to know about async, I like the approach in deltachat/deltachat-core-rust#3734 better because there is a single loop that processes all the events and messages. But it is not applicable to CFFI python bindings because they already implement their own event loop ( |
related: #44