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 409B

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