-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.json.example
57 lines (53 loc) · 2.4 KB
/
config.json.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
// Note: This file is parsed according to the JSON5 <https://json5.org/> standard,
// e.g. comments and trailing commas are allowed here.
// optional settings are commented out
telegram: {
token: "123456:BOT-TOKEN-HERE",
},
irc: {
server: "irc.example.net",
port: 6697,
ssl: true,
//ipv6: true, // enable IPv6 for IRC connection (defaults to true)
nick: "tg_bridge",
//password: "12345", // server password
//nickpassword: "s3cret", // NickServ password
},
bridge: {
options: {
"telegram_bold_nicks": true, // make nicks bold in telegram
"telegram_show_joins": false, // show joins/parts from IRC on Telegram
//"irc_nick_colors": [2, 4, 12], // custom color set for nick colorization on IRC, use [] to disable
"irc_show_added_users": true, // show added/removed users from Telegram on IRC
"convert_webp_stickers": false, // convert WebP stickers to PNG
"forward_sticker_dimensions": false, // show (Sticker, 512x512) instead of (Sticker)
"forward_sticker_emoji": false, // show emoji attached to sticker after (Sticker) tag
"forward_document_mime": true, // show (Document, video/mp4) instead of (Document)
"forward_audio_description": true, // show (Audio, 3m47s: Rebecca Black – Friday) instead of (Audio, 3m47s) if possible
"forward_text_formatting_irc": false, // Forward bold and italics formatting from IRC to Telegram
"forward_text_formatting_telegram": true, // Forward bold, italics, code, ... formatting from Telegram to IRC
},
//telegram_ignore_users: [ // users ignored by bridge
// 987654321,
//],
links: [
// you can find out the telegram id of a chat by adding the bot and watching the log output
{telegram: -123455465, irc: "#irc_channel"},
{telegram: 323443454, irc: "#irc_channel2"},
]
},
web_backend: {
type: "external", // stub, builtin or external
use_subdirs: true, // spread media files over 26 subdirectories
//filename_mode: "counter", // how filenames are formatted, supports: "counter" (default), "timestamp", "uuid"
// PICK THE SECTION MATCHING YOUR web_backend AND DELETE THE REST
// options for builtin:
//bind: "44.32.11.0", // host to bind to (defaults to 127.0.0.1)
//baseurl: "http://myself.dyndns.org:8081", // externally reachable URL
port: 8081, // port to bind to
// options for external:
webpath: "/var/www/tg", // where to write files
baseurl: "https://yourname.me/tg", // externally reachable URL
}
}