Link Search Menu Expand Document

Requirements

MadelineProto requires the mbstring, xml, json, fileinfo, gmp, ffi, openssl extensions to function properly.

The ev and event extensions are highly recommended to improve performance.

PHP 8.1+ is required.

MadelineProto explicitly supports Linux and UNIX systems (including Mac OS).
MadelineProto generally works on Windows, though there might be some random issues caused by AV engines, so I personally recommend using Linux.

Running on webservers and webhosts is fully supported, but I highly recommend running long-running applications like event handler bots via CLI (in a screen session, for example).

To install MadelineProto dependencies on Ubuntu, run the following command in your command line:

sudo apt-get update
sudo apt-get install software-properties-common
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php8.2 php8.2-dev php8.2-xml php8.2-zip php8.2-gmp php8.2-cli php8.2-mbstring php8.2-ffi php-pear libevent-dev -y
sudo pecl install event ev

Next, add extension=event.so and extension=ev.so to php.ini.

Finally, follow the instructions on prime.madelineproto.xyz to install PrimeModule.

Next section