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)
#coolmpstuff
You can export your telegram authorization from MadelineProto using

$authorization = $MadelineProto->export_authorization();


The exported
$authorization

will be an array with two values:

- a number (the DC ID)
- a 256 byte string (the auth key, cannot be encoded with json)

You can pass the returned $authorization to another instance of MadelineProto using $MadelineProto->import_authorization($authorization), just make sure to delete the original instance, or else both instances will stop working.

You can also use import_authorization to import authorization from another telegram client.
For example, you could export the authKey and the dcID from a webogram instance, and import it into madeline.
Just make sure to export the auth key of the main authorized DC (the one to which you get redirected when you call users.getUsers on yourself).
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
#coolmpstuff
You can queue method calls using a synchronized queue.
When making multiple method calls, to make sure the methods are executed in order, you can use a synchronized server-side queue.

For example, if you're sending messages with an increasing number, loaded from a shared state from two separate madeline processes, to make sure the numbers are actually sent in order using the queuename queue do the following:

$MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => $number], ['queue' => 'queuename']);


queuename can be any valid string.
If such a queue doesn't exist, it will be created.
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
For example, all secret chat messages are automatically queued in a secret chat-specific queue.
Wanted to share a video of a wonderful experience I had participating at Ballando on the Road, a dance event organized by Milly Carlucci, with the collaboration of Carolyn Smith, and other world-famous dancers!
Forwarded from Fantasy Foto video tutto
Ballando on the Road
http://ift.tt/2A8yRp0

Message: 2 min che ricorderemo x sempre, 2 min fulminanti, 2 min a Ballando On The Road corso FANTASY
November 17, 2017 at 08:50PM http://ift.tt/2A8yRp0
I'm the photographer :D
For newcomers:
Use the following docker image to install PWRTelegram: https://hub.docker.com/r/houna/pwrt
Documentation: pwrtelegram.xyz
API Documentation: docs.madelineproto.xyz/API_docs/methods
Happy new year :)
PWRTelegram API channel pinned «For newcomers: Use the following docker image to install PWRTelegram: https://hub.docker.com/r/houna/pwrt Documentation: pwrtelegram.xyz API Documentation: docs.madelineproto.xyz/API_docs/methods»
Welcome back, Iranians!
As a present for you, PWRTelegram is back! ❤️
Please don't kill it right away with file uploads ❤️
Forwarded from Michael
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 generate correctly the SSL certificate, and REQUIRES a valid working email.
-Little fixes

I've also re-pushed the previous image and tagged it as houna/pwrt:0.3, so it can still downloadable..

Hav a noice day!

PWRT DOCKER: https://hub.docker.com/r/houna/pwrt
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
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 docs.madelineproto.xyz/API_docs/methods for more info!
- The Madelineproto version is now logged in error traces!
- Better lock management, to avoid script hangs during file downloads and serialization
- Downloads are much faster now on MadelineProto and PWRTelegram, thanks to the new 1MB chunk size!
- Improved downloading of CDN files
- Improved initConnection
- Greatly improved stability
- Updated the scheme to layer 75
- Added account.getWebAuthorizations method to get all bots logged in using telegram's new login widget
- Added account.resetWebAuthorization to delete a certain web authorization, account.resetWebAuthorizations to delete all web authorizations
- messages.sendMedia now has message and parse_mode parameters that can be used to send styled captions.
- Removed messages.forwardMessage, only messages.forwardMessages can be used now to forward messages.
- Added new constructors to find messages by ID, find the pinned message of a group/channel or find all replies to a certain message, to be used with channels.getMessages messages.getMessages
- Updated channel.exportMessageLink to add the grouped parameter
- Added messages.getStickers to search for stickers by emoji and stickerSet hash
- Updated account.registerDevice to offer more options while signing up for push updates.
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
This message was sent using MadelineProto from a user account with the following code:
require 'phar.php';
$MadelineProto = new \danog\MadelineProto\API(['app_info' => ['api_id' => censored, 'api_hash' => censored]]);
$MadelineProto->phone_login('myphone');
$MadelineProto->complete_phone_login(readline('Enter code: '));
$MadelineProto->complete_2fa_login(readline('Enter password: '));
$text = 'MadelineProto was updated!...';
$MadelineProto->messages->sendMessage(['peer' => '@MadelineProto', 'message' => $text, 'parse_mode' => 'Markdown']);
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
But what is phar.php?
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
You can now install MadelineProto on PHP 5 (and 7) using a single file!

Simply download the latest phar.php from phar.madelineproto.xyz, require "phar.php" and you'll be able to use MadelineProto on your free PHP 5 host!
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
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.