TGViewer
Channel Public Channel
PWRTelegram API channel

PWRTelegram API channel

@pwrtelegram

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
Subscribers
724
Photos
12
Videos
1
Links
166

Showing posts older than #418 · Back to latest

Older Posts 18 shown
Post #417 183

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)
Post #415 200

Forwarded from Daniil Gentili's news channel

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);
}
Post #414
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…»
Post #408 138

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;
Post #407
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…»
Post #406 128

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
docs.madelineproto.xyz Methods What do you want to do?
Post #404 1.75K
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
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →