All Projects → realGuys → MadelineProtoPluginSystem

realGuys / MadelineProtoPluginSystem

Licence: MIT license
A fully async plugin-friendly MadelineProto source base

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to MadelineProtoPluginSystem

DevelopersUserbot
Telegram Userbot Made for Developers by Developers
Stars: ✭ 25 (+78.57%)
Mutual labels:  userbot, userbot-telegram
Telegram-UserBot
Abandoned.. Moved to https://github.com/TeamDerUntergang/Telegram-SedenUserBot
Stars: ✭ 38 (+171.43%)
Mutual labels:  userbot, userbot-telegram
AsenaUserBot
Asena UserBot is the most advantageous and fast UserBot with changeable language and permanent plugin system.
Stars: ✭ 133 (+850%)
Mutual labels:  userbot, userbot-telegram
Madelineproto
Async PHP client/server API for the telegram MTProto protocol
Stars: ✭ 1,776 (+12585.71%)
Mutual labels:  madelineproto, amphp
Fire-X
Powerful Telegram Maintained UserBot in Telethon
Stars: ✭ 22 (+57.14%)
Mutual labels:  userbot, userbot-telegram
Sophie
New repo - https://gitlab.com/SophieBot/sophie
Stars: ✭ 28 (+100%)
Mutual labels:  telegram-bots
http-server-static-content
Static content / file serving for Amp's HTTP server.
Stars: ✭ 19 (+35.71%)
Mutual labels:  amphp
amp-surface
⚡ AMP Surface CSS Framework
Stars: ✭ 26 (+85.71%)
Mutual labels:  amp
nosticker bot
Bot that fights telegram stickers
Stars: ✭ 18 (+28.57%)
Mutual labels:  telegram-bots
shell2telegram
Telegram bot constructor from command-line
Stars: ✭ 117 (+735.71%)
Mutual labels:  telegram-bots
grouphelperbot
A Telegram Bot made to help group admins, with Italian/English support.
Stars: ✭ 26 (+85.71%)
Mutual labels:  telegram-bots
Triton
GitHub notifications tracker for Telegram. Pushes GitHub notifications to Telegram.
Stars: ✭ 12 (-14.29%)
Mutual labels:  telegram-bots
LEGENDBOT
Fastest And Smoothest Userbot Based On Latest Telethon Library
Stars: ✭ 183 (+1207.14%)
Mutual labels:  userbot
mailgrab
Simple and easy to use catch-all SMTP mail server and debugging tool
Stars: ✭ 92 (+557.14%)
Mutual labels:  amphp
Telegram-mailer
Web-application for sending messages to list of users. Use several accounts to avoid ban.
Stars: ✭ 28 (+100%)
Mutual labels:  telegram-bots
FreeSteamGames-TelegramBot
A Telegram Bot that sends you a message when a game on steam is free
Stars: ✭ 35 (+150%)
Mutual labels:  telegram-bots
King-Userbot
USERBOT TELEGRAM
Stars: ✭ 49 (+250%)
Mutual labels:  userbot-telegram
asynit
🌠 Asynchronous HTTP Request Testing Library for API or more...
Stars: ✭ 74 (+428.57%)
Mutual labels:  amphp
wind-framework
Pure PHP Coroutine Framework based on Workerman and Amphp.
Stars: ✭ 41 (+192.86%)
Mutual labels:  amphp
ULTRA-X
No description or website provided.
Stars: ✭ 60 (+328.57%)
Mutual labels:  userbot

MadelineProto Plugin System V1.5

A fully async plugin-friendly MadelineProto source base


Use this source code to make your ideas in a nice async way! Just follow the way that source code itself is written in!

Instructions


Table Of Contents
1-Installation
1.1-Using Terminal
1.1.1-Download Repository
1.1.2-Config And Run
1.2-Using Browser
1.2.1-Download Repository
1.2.2-Config And Run
2-Any time configuration
2.1-Using terminal
2.2-Using Browser
3-How To Use
3.1-Plugins
3.1.1-Syntax
3.1.2-Loading Plugins On Bot
3.1.3-Available Plugins
3.1.4-Available Commands

1-Installation

1.1-Using Terminal

1.1.1-Download Repository

First clone this repository using git:

$ git clone https://github.com/realGuys/MadelineProtoPluginSystem.git

Go to it's directory:

$ cd MadelineProtoPluginSystem
1.1.2-Config And Run

Just run it and config it through your terminal and answer prompts to config your bot settings:

$ php index.php

Enjoy your first (user) bot using this Plugin System!

1.2-Using Browser

1.2.1-Download Repository

Download repository as zip from here, then upload it on your host and extract it.

1.2.2-Config And Run

Run index.php file through your browser and fill asked forms to config your bot settings.

Enjoy your first (user) bot using this Plugin System!

2-Any time configuration

2.1-Using terminal

Run index.php file with --config flag:

$ php index.php --config

2.2-Using Browser

Run index.php file in browser with config query:

http://yourdomain.ext/path/to/index.php?config

3-How To Use

3.1-Plugins

3.1.1-Syntax

Plugin files must return an array with two column of values, the first one describes role of user using the command, the second one is command itself! You can make a plugin with two commands for two different roles just like this:

<?php
/**
 * Just another simple plugin
**/

$commands['role1']['ping'] = function (array $update): \Generator
{
  yield $this->messages->sendMessage([
    'peer' => $update,
    'message' => 'Pong!'
  ]);
};
$commands['role2']['hello'] = function (array $update): \Generator
{
  yield $this->messages->sendMessage([
    'peer' => $update,
    'message' => 'Pong!'
  ]);
};

return $commands;
3.1.2-Loading Plugins On Bot

No need to do that! The plugins will automatically load on starting bot.

3.1.3-Available Plugins

There is some plugins for add admin access to other users, reloading plugins e.g. to apply new changes and so on in the plugins directory, use tham to make your own awesome plugins!

Maybe I make some new plugins and add them to repository too, you may commit yours too!

3.1.4-Available Commands
Command Information
ping Just a simple ping command!
getReports (on|off) Enable/Disable error reporting
addAdmin (@username|reply) Adds new admins to bot using addAdmin @username or simply reply this command on a message
addOwner (@username|reply) Adds new owners to bot, use just like addAdmin!
delAdmin (@username|reply) Removes admins from bot, use just like addAdmin!
listAdmin Sends a list of current admins
reload Reloads Plugin System e.g. to apply new changes
restart Restarts the bot
shutdown Shuts the bot down
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].