PWRTelegram API channel
721 subscribers
12 photos
1 video
7 files
166 links
Official channel for the PWRTelegram bot API.

Installation instructions: https://pwrtelegram.xyz

Creator: @danogentili

Official support group: @pwrtelegramgroup

Italian channel: @pwrtelegramita

Source code: https://github.com/pwrtelegram
Download Telegram
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
2FA works, too
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
And yes, my password hint is "string" ;)
How to get your API ID / API HASH:
1) Login to my.telegram.org
2) Go to API development tools
3) App title: your app's name, can be anything
Short name: your app's short name, can be anything
URL: your app/website's URL, or t.me/yourusername
Platform: Web
Description: Describe your app here
4) Click on create application
5) $api_id = App API_ID
$api_hash = App API_hash
Join @pwrtelegramgroup for support!
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (NOW FEATURING FULL DOCUMENTATION)! :D
- The MadelineProto API documentation now has descriptions and examples for every method and every parameter!
- Added automatic login UI to automatically fetch the API ID and the API hash, no need to provide it in the settings!
- php-libtgvoip was updated with bugfixes!
- Altervista bugfixes (anche la base è stata aggiornata!)

Now you can see descriptions for every method in the brand new, updated documentation: https://docs.madelineproto.xyz/API_docs/methods
PWRTelegram API channel pinned «MadelineProto was updated (NOW FEATURING FULL DOCUMENTATION)! :D - The MadelineProto API documentation now has descriptions and examples for every method and every parameter! - Added automatic login UI to automatically fetch the API ID and the API hash, no…»
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
New, simplified version of this code:
<?php

if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$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)
@magnaluna was updated, now she's much more stable, and supports commands through secret chats!
Call her! 📞
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
By the way, here's the source code of @magnaluna: https://github.com/danog/MadelineProto/blob/master/magna.php
Just download that, install Voip.madelineproto.xyz and run magna.php.
Join @pwrtelegramgroup for support.
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
@magnaluna was updated, now with a super-awesome new feature!
Call it from Telegram Desktop to make use of this new feature!
PWRTelegram API channel pinned «Hi to all!! First of all, very thanks for +50k pulls 😍❤️ Now, the news.. I've pushed new image version of PWRT on Docker Hub, the v0.4 / latest. What's new? -Fixed the MySQL connection problem -Added variable MAIL. This is REQUIRED for Let's Encrypt to…»
View counter booster: run the following script, changing every time the CURL proxy setting to boost the view counter of any message in a channel.

<?php
$base = 'https://t.me/daniilgentili/270?embed=1';

$gecko = 1;
$mozilla = 0;
while (true) {
$user_agent = "User-Agent: Mozilla/5.$mozilla (X11; Linux x86_64; rv:52.0) Gecko/$gecko Firefox/52.$mozilla";
$mozilla++;
$gecko++;

$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["User-Agent: $user_agent"]);
curl_setopt($ch, CURLOPT_URL, $base);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);


$result = curl_exec($ch);

preg_match('/data-view="(\w+)"/', $result, $matches);
preg_match('/stel_ssid=(\w+)/', $result, $session);
$ssid = $session[1];

$data = json_decode(base64_decode($matches[1]), true);
var_dump($ssid, $data);

curl_setopt($ch, CURLOPT_URL, $base."&view=".$matches[1]);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-Requested-With: XMLHttpRequest', "Cookie: stel_ssid=$ssid", "User-Agent: $user_agent"]);
curl_setopt($ch, CURLOPT_HEADER, false);

$response_content = curl_exec($ch);
switch ($response_content) {
case 'true':
break;
default:
throw new Exception($response_content);
}
unset($ch);
}
Forwarded from MadelineProto | Official Channel (Daniil Gentili t)
MadelineProto was updated!

- Made some bugfixes to channel PTS management
- Bugfixes to the MTProto server
- Now special
bytes
objects can be used while working with binary data in JSON (like in PWRTelegram):
- When working with byte fields returned by MadelineProto, the byte fields will contain
\danog\MadelineProto\TL\Types\Bytes
objects.

This special object can be used as a normal string, and when it is passed to json_encode, the resulting JSON will have a
{"_": "bytes", "bytes":"base64encoded version of the binary data"}
array instead of the raw bytes.

- When working with byte fields that must be passed to MadelineProto methods, you can provide directly the binary data as a string, a \danog\MadelineProto\TL\Types\Bytes object or a {"_": "bytes", "bytes":"base64encoded version of the binary data"} array (useful for JSON MTProto calls through PWRTelegram)
Forwarded from Pavel Durov
For 7 days Russia has been trying to ban Telegram on its territory – with no luck so far. I’m thrilled we were able to survive under the most aggressive attempt of internet censorship in Russian history with almost 18 million IP addresses blocked.

If you live in Russia and support free internet, fly a paper plane from your window at 7 PM local time today. Please collect the airplanes in your neighborhood an hour later – remember, today is Earth Day.

My thanks to all the members of the #DigitalResistance movement. Keep up your great work setting up socks5-proxies and VPNs and spreading them among your Russian friends and relatives. They will be needed as the country descends into an era of full-scale internet censorship.