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.

zhabogram.rb 436B

1234567891011121314151617
  1. require 'set'
  2. require 'yaml'
  3. require 'yaml/store'
  4. require 'logger'
  5. require 'xmpp4r'
  6. require 'xmpp4r/discovery'
  7. require 'digest'
  8. require 'base64'
  9. require 'fileutils'
  10. require 'tdlib-ruby'
  11. require_relative 'inc/telegramclient'
  12. require_relative 'inc/xmppcomponent'
  13. Config = YAML.load_file(File.dirname(__FILE__) + '/config.yml')
  14. TelegramClient.configure Config[:telegram]
  15. Zhabogram = XMPPComponent.new Config[:xmpp]
  16. Zhabogram.connect()