Lightweight Telegram web client based on MadelineProto.
- Generate your own API id by creating a Telegram app at https://my.telegram.org/apps
- Create
api_value.phpfrom theapi_values.php.exampleusing theapi_idandapi_hashyou generated - Create
config.phpfrom theconfig.php.example
You can deploy your own instance quickly with Docker Compose - see how.
- Deny access to sessions folder (
s/by default, see inconfig.php) andMadelineProto.log - Install required php extensions:
gd,mbstring,xml,json,fileinfo,gmp,iconv,ffi - Download and set browscap database in
php.inito get better logged in device names - Install Composer v2+
- Install MadelineProto and its dependencies with
composer update - Apply MadelineProto patches:
patch -p0 < patches/InternalDoc.php.patch patch -p0 < patches/Files.php.patch patch -p0 < patches/UpdateHandler.php.patch - Make a background script that restarts php service at least every hour
- Set
session.gc_maxlifetime = 8640000inphp.ini - For more details on installing MadelineProto see here
- Install
gifski - Download and unpack: https://github.com/ed-asriyan/lottie-converter/releases
- Make sure www-data user has rights to it
- Edit
lottie_to_gif.sh&lottie_to_png.sh, add#!/usr/bin/env bashas first line - Edit
config.phpby settingCONVERT_TGS_STICKERSto true, andLOTTIE_DIRto path, where lottie_to_gif.sh is contained.
Example:
define('CONVERT_TGS_STICKERS', true); define('LOTTIE_DIR', '/opt/lottie/'); Fully supported:
- Internet Explorer 6.0 and above
- Opera 9.0 and above
- Nokia Browser for Symbian (S60v3 FP1 and above)
- BlackBerry OS7 and Blackberry 10 browser
- S40 6th Edition
- Mozilla Firefox 2.0
- WebPositive
- Opera Mobile 12
- All modern browsers (Chrome, Safari, etc)
Partially supported (Auto update doesn't work and/or no auto scroll):
- Internet Explorer 3.0-5.0
- Opera Mini (All versions)
- S40 5th Edition or older
- Internet Explorer Mobile (?)
- NetFront Browser 4.1 for Samsung
Not supported
- Internet Explorer 2 and older