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/zhabogram.rb

18 lines
436 B
Ruby
Raw Normal View History

require 'set'
require 'yaml'
require 'yaml/store'
require 'logger'
require 'xmpp4r'
2020-09-19 05:24:44 +00:00
require 'xmpp4r/discovery'
require 'digest'
require 'base64'
require 'fileutils'
require 'tdlib-ruby'
require_relative 'inc/telegramclient'
require_relative 'inc/xmppcomponent'
Config = YAML.load_file(File.dirname(__FILE__) + '/config.yml')
TelegramClient.configure Config[:telegram]
Zhabogram = XMPPComponent.new Config[:xmpp]
Zhabogram.connect()