# Register a new deltachat email with a bot

**URL:** <https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230>\
**Category:** Bots\
**Created:** [October 21, 2025, 4:19pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230 "2025-10-21T16:19:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea66](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@Andrea66](https://forum.delta.chat/u/Andrea66)\
**Post date:** [October 21, 2025, 4:19pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/1 "2025-10-21T16:19:58Z")

</div>

Hi everyone, I’m working on a bot written in C++ for an industrial application. I would like the bot to acquire a new email from a deltachat relay (like [nine.testrun.org](http://nine.testrun.org)) upon first install on a machine. I can’t find anything in the core library…what technique should I use to achieve this?

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [October 21, 2025, 5:11pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/2 "2025-10-21T17:11:11Z")

</div>

Maybe this will help:

> [@How to invite new user to specific server?](https://support.delta.chat/t/how-to-invite-new-user-to-specific-server/3893/8):
>
> You don’t actually need the chatmail server QR code. If you Pretend you have an account on the chatmail server a. Make up a 9-character random string, and call it your user name. If your unblocked server was [nine.testrun.org](http://nine.testrun.org), use [9-char random string]@nine.testrun.org as your email address. b. Make up a password. A string of 12 random characters is standard. In the DC client, pick “Create New Profile”\>“Use Other Server”\>“Classic E-Mail Login” Fill in your made-up address and password. Ever…

---

<div class="post-metadata">

**Author:** ![Simon](https://forum.delta.chat/user_avatar/forum.delta.chat/simon/32/287_2.png) [@Simon](https://forum.delta.chat/u/Simon)\
**Post date:** [October 21, 2025, 5:26pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/3 "2025-10-21T17:26:35Z")

</div>

you may find the basics for writing a bot here: [GitHub - deltachat-bot/echo: An echo bot in multiple languages to get you started](https://github.com/deltachat-bot/echo/tree/main)

instead of configuration with email address and password you would need to configure with qr code:

```c
dc_set_config_from_qr(context, "dcaccount:https://nine.testrun.org/new")

```

See docs: [`dc_set_config_from_qr `](https://c.delta.chat/classdc __context__ t.html#ac95d7275f01862fba70169b8cbb937c0)

If you are using the cffi bindings, if you are using jsonrpc api, then the method is the same, but you would call it differently.

---

<div class="post-metadata">

**Author:** ![Andrea66](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@Andrea66](https://forum.delta.chat/u/Andrea66)\
**Post date:** [October 21, 2025, 6:06pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/4 "2025-10-21T18:06:11Z")

</div>

Hi Simon, unfortunately, my bot will be running on an industrial device without any QR code scanning capabilities. I currently do this step manually… I use a smartphone to capture the QR code and then manually copy the email and password into my bot. It works, but I’d like to make this step automatic during bot installation. The deltachat app for Android, for example, does this without using the camera, but I haven’t figured out how it does it. 😉

---

<div class="post-metadata">

**Author:** ![Andrea66](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@Andrea66](https://forum.delta.chat/u/Andrea66)\
**Post date:** [October 21, 2025, 6:48pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/6 "2025-10-21T18:48:54Z")

</div>

wow! it works 🙂  
email address and password are simply random character sequences  
Tks 9er.

---

<div class="post-metadata">

**Author:** ![9er](https://forum.delta.chat/user_avatar/forum.delta.chat/9er/32/2678_2.png) [@9er](https://forum.delta.chat/u/9er)\
**Post date:** [October 21, 2025, 7:42pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/7 "2025-10-21T19:42:37Z")

</div>

> [@Andrea66](#):
>
> unfortunately, my bot will be running on an industrial device without any QR code scanning capabilities

You don’t need no scanning 🙂 The function name Simon has pointed to is misleading - it actually deals with URLs (text strings, often, but not always encded as QRs), not with QR-coded pictures.

So maybe Simon’s answer is better. At least, you will be using single API in your code.

---

<div class="post-metadata">

**Author:** ![Andrea66](https://forum.delta.chat/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@Andrea66](https://forum.delta.chat/u/Andrea66)\
**Post date:** [October 22, 2025, 6:42pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/8 "2025-10-22T18:42:27Z")

</div>

Thanks for the info…I’ll try it!

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [October 22, 2025, 8:40pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/9 "2025-10-22T20:40:08Z")

</div>

The QR codes are just QR-encoded URLs (run them thru any QR decoder, or copy-paste them from the app into a text file). You can paste a URL into the client GUI instead of scanning a QR code, or use them in code.

The [invite URLs are actually just encoded OpenPGP key fingerprints](https://support.delta.chat/t/why-can-i-only-add-friends-using-qr-codes-and-links/3931/16) used to set up encryption, dressed up as [delta.chat](http://delta.chat) URLs so that Android will let Deltachat get them (by pretending to “open” them), and confused users can easily find a help page.

More here: [SecureJoin Protocol](https://securejoin.readthedocs.io/en/latest/new.html#setup-contact-protocol), other [standards used in DC](https://cosmos.delta.chat/).

But yeah, making stuff up works. 🙂

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 22, 2026, 8:40pm UTC](https://forum.delta.chat/t/register-a-new-deltachat-email-with-a-bot/4230/10 "2026-10-22T20:40:49Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
