[SVN] bump to version 2.0 [UPD] now transport working with telethon 0.15.5 and sleekxmpp 1.3.2 [FIX] fixed everlasting authorization requests. if you got deauth message — ignore it, FROM subscription is enough. [ADD] implemented roster exchange via XEP-0144 [ADD] we will send authorization request when unknown contact sent us a message [ADD] correct presence handling for transport and users [ADD] fixed presence spam (by default, we updating presence once for 60 seconds -- look at `status_update_interval` in mtproto.py) [ADD] we will automatically connect to all actual sessions after transport start
24 lines
567 B
Python
24 lines
567 B
Python
# Rename to config.py
|
|
|
|
CONFIG = {
|
|
'title': 'XMPP <-> Telegram Gate',
|
|
|
|
'debug': True,
|
|
|
|
'jid': 'tlgrm.localhost',
|
|
'secret': 'secret',
|
|
'server': 'localhost',
|
|
'port': '8889',
|
|
|
|
'tg_api_id': '17349', # Telegram Desktop (GitHub)
|
|
'tg_api_hash': '344583e45741c457fe1862106095a5eb',
|
|
|
|
'db_connect': 'db.sqlite',
|
|
|
|
'media_web_link_prefix': 'http://tlgrm.localhost/media/',
|
|
'media_store_path': '/var/tg4xmpp/media/',
|
|
'media_max_download_size': 1024 * 1024 * 100, # in bytes
|
|
|
|
'messages_max_max_cache_size': 300, # for quotes
|
|
}
|