Skip to content

Lightweight telegram web client based on MadelineProto

License

Notifications You must be signed in to change notification settings

shinovon/mpgram-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 13, 2025
0a52342 · Feb 13, 2025
Sep 10, 2024
Feb 13, 2025
May 18, 2024
Feb 13, 2025
Oct 13, 2024
Aug 18, 2022
May 18, 2024
Mar 16, 2024
Sep 14, 2023
Feb 13, 2025
Nov 30, 2024
Nov 30, 2024
Jan 28, 2025
Oct 27, 2022
Aug 15, 2024
Oct 8, 2024
Aug 20, 2024
Nov 30, 2024
Nov 30, 2024
Nov 30, 2024
Nov 30, 2024
Oct 31, 2023
Oct 31, 2023
Nov 30, 2024
Nov 30, 2024
Jul 10, 2024
Jul 10, 2024
Sep 14, 2024
Nov 30, 2024
Nov 30, 2024
Oct 22, 2023
Nov 30, 2024
Dec 2, 2023
Dec 2, 2023
Jan 28, 2025
Jan 28, 2025
Nov 30, 2024
Oct 20, 2024
Oct 20, 2024
Nov 30, 2024
Dec 2, 2023
Mar 1, 2024
Nov 30, 2024
Nov 30, 2024
Nov 30, 2024
Mar 1, 2024
Jun 2, 2024
Oct 20, 2024

Repository files navigation

MPGram Web

Lightweight Telegram web client based on MadelineProto.

Setup

Deployment

Docker

You can deploy your own instance quickly with Docker Compose - see how.

Manual deployment

  • Deny access to sessions folder (s/ by default, see in config.php) and MadelineProto.log
  • Install required php extensions: gd, mbstring, xml, json, fileinfo, gmp, iconv, ffi
  • Download and set browscap database in php.ini to 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
  • Make a background script that restarts php service at least every hour
  • Set session.gc_maxlifetime = 8640000 in php.ini
  • For more details on installing MadelineProto see here

Animated stickers conversion (Optional)

Example:

define('CONVERT_TGS_STICKERS', true);
define('LOTTIE_DIR', '/opt/lottie/');

Tested browsers

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 (?)

Not supported

  • Internet Explorer 2 and older