Jabber transport to Telegram network
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
annelin 7a0845ad39
Added README.md & license
5 years ago
inc Added README.md & license 5 years ago
lib Added libtdjson build for Debian Stretch x64 5 years ago
LICENSE Added README.md & license 5 years ago
README.md Added README.md & license 5 years ago
config.yml.example Release 0.7 5 years ago
zhabogram.rb Release 0.4 5 years ago

README.md

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.