“Strangers are just friends you haven’t met yet.”
- (proverb)
The Public Groups bot is a nice tool to create public channels, where any Delta Chat user can join - even if you don’t know each other yet.
You can see the existing public groups bots here: Public Groups bot instances list - #2 by cregox
This post shows three things:
- How you can join public groups
- How you can start a public group
- How to run it
How Can I Join a Public Group?
As a user, you open a website - it shows a login page with a QR code. You need to scan the QR code with Delta Chat to login, as if you would add another user:
Then you see an overview over the existing public groups:
This is where you can join a public group with only one mouse click. The bot adds you to the group in Delta Chat, then you can write with others about Game of Thrones quotes, Dancing, or whatever you like.
How Do I Open a Public Group?
If you want to offer such a channel yourself, you need a public groups instance somewhere. Find out below how to run one.
The starting point is the webpage where you login. If you scanned the QR code, you have the bot in your contact list. Now you can create a group and add the bot. After you created the group, you have to send “/publish” to the group - then the bot will show it to other people who login at the bot.
After this, you can see the group in the web interface - and so can everyone else who scanned the QR code to log in.
If you want to unpublish the group again, to prevent strangers from joining, that’s easy as well - just write “/unpublish” to the group, and the bot will remove it from the public page. Now you have a private group again.
How Can I Run the Bot Myself?
To find out how to run the bot, take a look at its readme file. It’s only a few commands on a command line.
You also need an email account for the bot, of course. If you want to find a good provider, take a look at our provider database.
Other than most bots, this bot doesn’t make much sense if its running in a local network only - you need a website if you want strangers to join. So rent a small VPS, install NGINX, and let it forward the traffic to localhost:3000
. This is a short example nginx config which you can use:
server {
server_name example.org;
location / {
proxy_pass http://127.0.0.1:3000;
}
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = example.org) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
server_name example.org;
return 404; # managed by Certbot
}
Was this post helpful for you? You can leave a comment if you have a question or any other ideas