Jabber transport to Telegram network
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.
Go to file
2019-04-16 07:53:31 +03:00
inc Added README.md & license 2019-04-16 07:53:31 +03:00
lib Added libtdjson build for Debian Stretch x64 2019-04-07 22:19:20 +03:00
config.yml.example Release 0.7 2019-04-16 06:45:56 +03:00
LICENSE Added README.md & license 2019-04-16 07:53:31 +03:00
README.md Added README.md & license 2019-04-16 07:53:31 +03:00
zhabogram.rb Release 0.4 2019-04-13 17:42:56 +03: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:

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:

db_path: 'users.db'  
jid: 'telegram.jabber.ru'  
host: 'localhost'  
port: 8888  
secret: 'secret'  
loglevel: 0   

If neccessary, edit telegram section too.