857e8bd202
[+] New config options (see config.yml.example) [+] Storing transport sessions in sqlite db [+] Auto connecting if we have stored session JID that came online [+] Auto disconnecting when JID going offline [+] Roster and status synchronisation with Telegram contact list [+] Added Edited and Deleted Messages support [+] Add Files (Audio, Photo, Documents, Stickers) support [+] Added incoming text formatting with MSG ID, user names and login [~] Some new config options (see config.yml.example) [~] Some code refactoring
17 lines
423 B
Ruby
17 lines
423 B
Ruby
# Some very important libraries'
|
|
require 'yaml'
|
|
require 'logger'
|
|
require 'xmpp4r'
|
|
require 'digest'
|
|
require 'sqlite3'
|
|
require 'tdlib-ruby'
|
|
require_relative 'inc/telegramclient'
|
|
require_relative 'inc/xmppcomponent'
|
|
|
|
# Configuration file #
|
|
Config = YAML.load_file(File.dirname(__FILE__) + '/config.yml')
|
|
|
|
# Configure Telegram Client #
|
|
TelegramClient.configure(Config['telegram'])
|
|
XMPPComponent.new(Config['xmpp']).connect()
|