Skip to content

JSON Configuration

Ruben de Groot edited this page Dec 2, 2019 · 11 revisions

Signal IRC Telegram gateway wiki

configuration options

common

   => notify

Script to call when errors occur; can be any executable script

signal

   => phone

Phone number of the signal bot as registered by signal-cli

   => gid

Group id of the signal group; add the phone number to the group and look add the output of signalpoller script to find the groupId.

{"envelope":{"source":"+316xxxxxxxx","sourceDevice":1,"relay":null,"timestamp":1574322846934,"isReceipt":false,"dataMessage": {"timestamp":1574322846934,"message":"good morning","expiresInSeconds":0,"attachments":[],"groupInfo": {"groupId":"XXXXXXXXXXXXXXXX==","members":null,"name":null,"type":"DELIVER"}},"syncMessage":null,"callMessage ":null}}

   => cli

Full path to the signal-cli program

   => infile

Full path to the signal-cli program, installed from AsamK's repository

   => db

Full path to the sqlite3 database containing phone -> nickname mappings of signal users

   => debug

Full path to the debug logfile

   => anon

String used to anonymize telephone numbers of signal users. Replaces all but the last 4 numbers of the telephone number when relaying messages

   => attachments

Directory where attachments are downloaded by the signal-cli program. By default this is the directory ~/.local/share/signal-cli/attachments in the user's home directory, but it should be served by a webserver

   => url

The url from which the attachments can be downloaded

telegram

   => token

Api token of the telegram bot. Ask @BotFather in telegram.

   => chat_id

The chat_id of the telegram group

   => forward

If telegram->forward is defined, messages from other telegram channels/groups that were forwarded to the group are interpreted and forwarded to the irc and signal groups

   => db

Path to an sqlite3 database file used of members of the telegram group

   => debug

logfile where received message body from the webhook are written

   => attachments

Directory where the webhook puts attachments into

   => url

Full url to where downloaded attachments kan be downloaded

irc

   => node

irc server hostname, e.g. irc.freenode.net

   => channel

irc channel, e.g. #bitcoin

   => nick
   => password
   => ident

(Fake) username on local machine

   => ircname

Long username

   => port
   => UseSSL

0 or 1

   => maxmsg

Messages with length exceeding maxmsg will be split into chunks of maxmsg

   => infile

File tailed by hermod; new messages from signal and telegram go here and are relayed to irc

   => debug

Debug messages go here

twitter

   => consumer_key
   => consumer_secret
   => token
   => token_secret

You need to create a twitter app to get these values for accessing the twitter api

   => screen_names

Twitter handles to follow

   => tags

Twitter tags to follow

   => tick

Time between twitter queries

Clone this wiki locally