Files
tg4xmpp/config_example.py
annelin c16faf8e4e [SVN] bump to version 0.2.1
[UPD] roster exchange (XEP-0144) now is not mandatory since not all clients supports it; it is optional and configurable
2018-06-19 19:29:49 +00:00

26 lines
652 B
Python

# Rename to config.py
CONFIG = {
'title': 'XMPP <-> Telegram Gate',
'debug': True,
'jid': 'tlgrm.localhost',
'secret': 'secret',
'server': 'localhost',
'port': '8889',
'xmpp_use_roster_exchange': True, # use XEP-0144 to import roster from Telegram
'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
}