This repository has been archived on 2024-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
zhabogram/README.md

42 lines
816 B
Markdown
Raw Normal View History

2019-04-16 04:53:31 +00:00
### Dependencies ###
* Ruby >= 1.9
* ruby-sqlite3 >= 1.3
* xmpp4r == 0.5.6
* tdlib-ruby == 2.0 with pre-compiled _libtdjson.so_
(there is pre-compiled _libtdjson.so_ for Debian Stretch x64 in repository)
### Installation ###
First of all, you need to create component listener on your Jabber server.
For example, for ejabberd:
2019-04-16 05:45:25 +00:00
```
port: 8888
2019-04-16 04:53:31 +00:00
module: ejabberd_service
access: all
shaper_rule: fast
ip: "127.0.0.1"
service_check_from: false
hosts:
"telegram.jabber.ru":
password: "secret"
```
Next, move **config.yml.example** to and **config.yml** and edit **xmpp** section to match component listener:
2019-04-16 05:45:25 +00:00
2019-04-16 04:53:31 +00:00
```
2019-04-16 05:46:37 +00:00
xmpp:
db_path: 'users.db'
jid: 'telegram.jabber.ru'
host: 'localhost'
port: 8888
secret: 'secret'
loglevel: 0
2019-04-16 04:53:31 +00:00
```
If neccessary, edit **telegram** section too.