Skip to content

Piagrammist/mp-self

Repository files navigation

MadelineProto Self UserBot

Usage

  • Clone the repo:

    git clone https://github.com/Piagrammist/mp-self && cd mp-self
  • Install the dependencies:

    composer install
  • Rename the config.example.php file to config.php, and place your credentials there.

  • Execute the entry point:

    php index.php

Robot Commands

.bot <on|off> Make the robot active or inactive.

.quiet <on|off> Switch the robot's quiet mode.

.delay <num_x> Change the periodic actions' delay.

.ping Check robot's responding.

.x <code> Execute the php code.

.cp <?peer> (reply) Copy and send the replied message to any chat. (default peer: current chat)

.info <?peer> [reply] Get info about the chat (+ a user depending on the reply/arg value).

.status Get info about the server & robot's chats.

.style <*|_|__|`|~|none> Switch the text styling.

.spell <txt> Split text into letters and send them separately.

.spam <num_x> <?num_y> <txt> Send x messages, each containing y * txt. (y can be omitted!)

.del <num_x> <?s|service>/<?a|after> [reply] Delete x messages from the chat.

  • If service is set, only service messages will be deleted.

  • If replied to a message, only messages before (after, if set) the replied message will be deleted.

.backup <?s|show>/<?c|clear> Make a profile backup, or show/delete the previous one.

.restore Restore the profile backup if it exists.

.clone <?peer> [reply] Clone profile of the peer, replied user or current chat.

{} (reply) Get JSON view of the replied message update.


Note

  • Supported command prefixes are / . !

  • () indicates a required reply, and [], an optional one.

  • / between arguments indicates "or".

About

MadelineProto self user-bot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages