MadelineProto | Official Channel
MadelineProto was updated! New features: - Added support for MTProto v3 (req_pq_multi) - Added support for http and https transports for webhosts that only allow HTTP connections, and for additional security - Made a lot of method parameters optional, see…
This also means faster downloads with PWRTelegram!
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated, now featuring:
- Performance improvements (startup time reduced to 0.7 seconds!)
- Bugfixes
- Support for tg://user?id= mentions, along with the old
- Settings can now be replaced directly on deserialization:
- Fixed markdown and HTML parsing of emojis ❤️
- Removed dependency on the mbstring extension
- HTTP improvements
- Now t.me/ URLs can be used as sendMessage parameters:
- Simple numeric message ids can now be used instead of InputMessage objects
- Separate phars are now generated for each branch
- Multithreading: MadelineProto now supports multiprocessing with pcntl_fork!
Simply run pcntl_fork(); in your script to create a fork of the current PHP process, MadelineProto will automatically detect it and adapt to support multiprocessing!
- Performance improvements (startup time reduced to 0.7 seconds!)
- Bugfixes
- Support for tg://user?id= mentions, along with the old
mention: syntax- Settings can now be replaced directly on deserialization:
$MadelineProto = new \danog\MadelineProto\Settings('oldsession.madeline', $newsettings);- Fixed markdown and HTML parsing of emojis ❤️
- Removed dependency on the mbstring extension
- HTTP improvements
- Now t.me/ URLs can be used as sendMessage parameters:
$MadelineProto->messages->sendMessage(['peer' => 't.me/joinchat/lksaSAFN-_214', 'message' => 'hi']);
$MadelineProto->messages->sendMessage(['peer' => 'https://t.me/danogentili', 'message' => 'ponies']);
- Simple numeric message ids can now be used instead of InputMessage objects
- Separate phars are now generated for each branch
- Multithreading: MadelineProto now supports multiprocessing with pcntl_fork!
Simply run pcntl_fork(); in your script to create a fork of the current PHP process, MadelineProto will automatically detect it and adapt to support multiprocessing!
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Here's an example of a multiprocessed bot: https://github.com/danog/MadelineProto/blob/master/multiprocess_bot.php
Since forking requires reconnection to all datacenters, regeneration of session, sequence and transport sequence numbers, I suggest it is used only when lengthy computations are needed, such as while downloading files.
Since forking requires reconnection to all datacenters, regeneration of session, sequence and transport sequence numbers, I suggest it is used only when lengthy computations are needed, such as while downloading files.
api.pwrtelegram.xyz currently undergoing maintainance for session cleanup, users and bots around telegram might experience glitches.
Hang on, the cleanup will make everything a lot faster!
Hang on, the cleanup will make everything a lot faster!
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated, now feauturing:
- HUGE performance improvements
- Improvements to peer and update handling
- get_pwr_chat can now fetch ALL members of a group/channel, even more than 10k!
- Hugely simplified documentation: docs.madelineproto.xyz
- HUGE performance improvements
- Improvements to peer and update handling
- get_pwr_chat can now fetch ALL members of a group/channel, even more than 10k!
- Hugely simplified documentation: docs.madelineproto.xyz
MadelineProto | Official Channel
MadelineProto was updated, now feauturing: - HUGE performance improvements - Improvements to peer and update handling - get_pwr_chat can now fetch ALL members of a group/channel, even more than 10k! - Hugely simplified documentation: docs.madelineproto.xyz
This means PWRTelegram is now much faster, and getChat can fetch more than 10k group members!
pwrtelegram.xyz
pwrtelegram.xyz
@FileUploadWaucgramBot - File upload bot, send it a file up to 1.5 GB and it will return a direct download link!
PWRTelegram API channel
@FileUploadWaucgramBot - File upload bot, send it a file up to 1.5 GB and it will return a direct download link!
Created by @TSFTelegram, contact him for support.
PWRTelegram was updated!
New features:
- /getchats method to get full info about all users, channels, groups, supergroups the bot has seen
https://api.pwrtelegram.xyz/botTOKEN/getChats
Note: if it's the first time you're using PWRTelegram, very few chats will be displayed. In a few days, the full chat list should be already fetched.
- /broadcast method to execute a method with all users, channels, groups, supergroups the bot has seen:
https://api.pwrtelegram.xyz/botTOKEN/broadcast?method=sendMessage&text=Testing%20@PWRTelegram%20broadcasts
Parameters:
method - String, name of the method to call: it will be called with the other parameters provided to the API call, chat_id being overwritten with all chat ids
New features:
- /getchats method to get full info about all users, channels, groups, supergroups the bot has seen
https://api.pwrtelegram.xyz/botTOKEN/getChats
Note: if it's the first time you're using PWRTelegram, very few chats will be displayed. In a few days, the full chat list should be already fetched.
- /broadcast method to execute a method with all users, channels, groups, supergroups the bot has seen:
https://api.pwrtelegram.xyz/botTOKEN/broadcast?method=sendMessage&text=Testing%20@PWRTelegram%20broadcasts
Parameters:
method - String, name of the method to call: it will be called with the other parameters provided to the API call, chat_id being overwritten with all chat ids
Also, PWRTelegram is MUCH faster now, and is VERY stable.
PWRTelegram API channel
PWRTelegram was updated! New features: - /getchats method to get full info about all users, channels, groups, supergroups the bot has seen https://api.pwrtelegram.xyz/botTOKEN/getChats Note: if it's the first time you're using PWRTelegram, very few chats…
How does this broadcasting feature work?
It uses MadelineProto's internal peer database!
It uses MadelineProto's internal peer database!
$MadelineProto->API->chats contains all of the users, chats and channels MadelineProto ever met, indexed by bot API id!Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Note: When you login to your account from http://try.madelineproto.xyz, MadelineProto will login to the MTProto API, and send a message to me, to the international @pwrtelegramgroup and subscribe you to this channel.
It does this to test MadelineProto's brand new web login UI.
You can delete the session in your privacy settings (Unicorn).
It does this to test MadelineProto's brand new web login UI.
You can delete the session in your privacy settings (Unicorn).
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated, in this time it's a HUGE update!
I've completely rewritten the documentation, now it's MUCH easier, and has descriptions and examples for EVERYTHING :D
I've also implemented lots of cool features:
- A unified login web UI + CLI interface, that can be invoked simply by running
- HUGELY simplified upload & download of files, up to 1.5 GB!
- VERY simple update management by webhook, event handler, long polling or callback! (There are full examples for every method)
- Built-in multithreading support with pcntl_fork!
- Documentation for FLOOD WAIT avoidance!
- New easy docs for webradios!
- New easy docs for secret chat bots!
Mooooooooooooooooooooooooooooooooooooore examples :DDD
- Source code of try.madelineproto.xyz
- tests/testing.php - examples for making/receiving calls, making secret chats, sending secret chat messages, videos, audios, voice recordings, gifs, stickers, photos, sending normal messages, videos, audios, voice recordings, gifs, stickers, photos.
- bot.php - examples for sending normal messages, downloading any media
- secret_bot.php - secret chat bot
- multiprocess_bot.php - multithreaded bot
- magna.php - examples for receiving calls
- userbots/pipesbot.php - examples for creating inline bots and using other inline bots via a userbot
- userbots/MadelineProto_bot.php - Multi-function bot
- userbots/pwrtelegram_debug_bot - Multi-function bot
I've completely rewritten the documentation, now it's MUCH easier, and has descriptions and examples for EVERYTHING :D
I've also implemented lots of cool features:
- A unified login web UI + CLI interface, that can be invoked simply by running
$MadelineProto->start();!- HUGELY simplified upload & download of files, up to 1.5 GB!
- VERY simple update management by webhook, event handler, long polling or callback! (There are full examples for every method)
- Built-in multithreading support with pcntl_fork!
- Documentation for FLOOD WAIT avoidance!
- New easy docs for webradios!
- New easy docs for secret chat bots!
Mooooooooooooooooooooooooooooooooooooore examples :DDD
- Source code of try.madelineproto.xyz
- tests/testing.php - examples for making/receiving calls, making secret chats, sending secret chat messages, videos, audios, voice recordings, gifs, stickers, photos, sending normal messages, videos, audios, voice recordings, gifs, stickers, photos.
- bot.php - examples for sending normal messages, downloading any media
- secret_bot.php - secret chat bot
- multiprocess_bot.php - multithreaded bot
- magna.php - examples for receiving calls
- userbots/pipesbot.php - examples for creating inline bots and using other inline bots via a userbot
- userbots/MadelineProto_bot.php - Multi-function bot
- userbots/pwrtelegram_debug_bot - Multi-function bot
docs.madelineproto.xyz
Async PHP client API for the telegram MTProto protocol
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
It's example time!
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
<?php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
// !!! This API id/API hash combination will not work !!!
// !!! You must get your own @ my.telegram.org !!!
$api_id = 0;
$api_hash = '';
$MadelineProto = new \danog\MadelineProto\API('session.madeline', ['app_info' => ['api_id' => $api_id, 'api_hash' => $api_hash]]);
$MadelineProto->start();
$me = $MadelineProto->get_self();
\danog\MadelineProto\Logger::log($me);
if (!$me['bot']) {
$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => "Hi!\nThanks for creating MadelineProto! <3"]);
$MadelineProto->channels->joinChannel(['channel' => '@MadelineProto']);
try {
$MadelineProto->messages->importChatInvite(['hash' => 'https://t.me/joinchat/Bgrajz6K-aJKu0IpGsLpBg']);
} catch (\danog\MadelineProto\RPCErrorException $e) {
}
$MadelineProto->messages->sendMessage(['peer' => 'https://t.me/joinchat/Bgrajz6K-aJKu0IpGsLpBg', 'message' => 'Testing MadelineProto!']);
}
echo 'OK, done!'.PHP_EOL;
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Simply get your own API ID and hash @ my.telegram.org, put this code on your webserver and run it to get a nice login UI!
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Or try it right away in try.madelineproto.xyz ;)
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
index.php
1.1 KB
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Some screenshots