pwrtelegram | Personal Development

Telegram-канал pwrtelegram - PWRTelegram API channel

885

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

Subscribe to a channel

PWRTelegram API channel

MadelineProto can now make phone calls!
It does that thanks to the \danog\MadelineProto\VoIP class, which is a wrapper for grishka's awesome library.
See https://daniil.it/MadelineProto/#calls for installation instructions.

The VoIP class has methods for:
* playing audio files in calls
* playing files on hold (when there are no files left to play)
* setting the audio output file
accepting incoming calls
* discarding calls
* setting a rating for completed calls
* getting the emoji visualization of the encryption key
* fetching the configuration needed to encode/decose audio files (usually it's always 16 bit signed linear PCM with a sample rate of 48 kHz and one channel)
* and much more! See https://daniil.it/MadelineProto/API_docs/types/PhoneCall.html

Input/output audio can be converted from/to any audio/video file using ffmpeg (just don’t forget to provide the correct number of channels, sample rate and bit depth, 
ffmpeg -i anyaudioorvideo -f s"$bitnumber"le -ac $channelNumber -ar $bitRate -acodec pcm_s"$bitnumber"le output.raw

).

You can also stream the audio track of video streams (even from youtube), or audio streams. Just stream the data to a FIFO, and use ffmpeg to output the converted audio to another FIFO that will be used as input file.

To make a call, use the request_call method: it accepts one parameter with the ID of the person to call, and returns a VoIP object.

Accepting calls is just as easy: you will receive an updatePhoneCall (https://daniil.it/MadelineProto/API_docs/constructors/updatePhoneCall.html) object from your update source (see update handling), and you will simply have to call accept() to accept the call.

See https://daniil.it/MadelineProto/#calls for more info.

Читать полностью…

PWRTelegram API channel

MadelineProto can now send audio streams via telegram calls! Documentation and wrappers for every language (lua, python, c) are coming soon!

Читать полностью…

PWRTelegram API channel

Suggestions for alternate color schemes are welcome (see Logger.php for available color schemes and modifiers).

Читать полностью…

PWRTelegram API channel

MadelineProto's logs are now EXTREMELY colorful on Linux terminals!

Читать полностью…

PWRTelegram API channel

Note: the API may ask you to set a custom backend to use it.
In this case, we're talking about a user backend, required to fetch user info.
You can set it simply by calling a method.
user backend !== installation script for the backend
The API is, as usual, free to use.

Читать полностью…

PWRTelegram API channel

The hosted version of the PWRTelegram API cannot upload/download files bigger than 50 MB anymore, because the amount of Full HD 1080p movies uploaded with it was killing the server.
You can install the API on your own server to upload files up to 1.5 gb, simply by cloning the repo (https://github.com/pwrtelegram/pwrtelegram) and creating the needed directory structure.
I can also provide you with a simplified installation script, just donate 10$ to paypal.me/danog, while specifying the username to which I should send the script (contact me first please).
You can also directly use daniil.it/MadelineProto (the API is just a wrapper for MadelineProto) for better performance.

Читать полностью…

PWRTelegram API channel

Fixed PWRTelegram userbot webhooks.

Читать полностью…

PWRTelegram API channel

You can hire me to write:
- bots
- APIs
- MadelineProto bots
- MadelineProto proxies
- any PHP program

My rate 60$/hour.

I can write anything you request, as long it's not anything shady or illegal, like:
- botnets
- spamming tools
- programs to distribute copyrighted content

Contact me @danogentili.

Читать полностью…

PWRTelegram API channel

Coming soon, madeline.py: a python version of MadelineProto, available for only 49,99$!

Читать полностью…

PWRTelegram API channel

PWRTelegram bots can now fetch the full message history of a channel, user or supergroup!
To do that, simply use the getMessages method or, to fetch info about service messages too, use the channels.getMessages MadelineProto method.

getMessage:

POST or GET to: https://api.pwrtelegram.xyz/bot$TOKEN/getMessage

Parameters:
chat_id=chat id
message_id=message id

A Message object will be returned.


channels.getMessage:

POST or GET to: https://api.pwrtelegram.xyz/bot$TOKEN/madeline?method=channels.getMessages
Parameters:
params: json array containing parameters described in http://daniil.it/MadelineProto/API_docs/methods/channels_getMessages.html


See pwrtelegram.xyz for more info.

Читать полностью…

PWRTelegram API channel

The PWRTelegram API isn't affected by this issue.

Читать полностью…

PWRTelegram API channel

To speed up MadelineProto even more, enable the gmp extension and compile the PrimeModule extension: https://github.com/danog/PrimeModule-ext

Читать полностью…

PWRTelegram API channel

#coolmpstuff

Here's how you can click buttons using MadelineProto (assuming you have received an http://daniil.it/MadelineProto/API_docs/constructors/updateNewMessage.html or an http://daniil.it/MadelineProto/API_docs/constructors/updateNewChannelMessage.html and that the reply_markup contains a valid keyboard)

$result = $Update['message']['reply_markup']['rows'][$row_number]['buttons'][$button_number]->click()



$result can be one of the following:

A string - If the button is a keyboardButtonUrl

Updates - If the button is a keyboardButton, the message will be sent to the chat, in reply to the message with the keyboard

messages_BotCallbackAnswer - If the button is a keyboardButtonCallback or a keyboardButtonGame the button will be pressed and the result will be returned

false - If the button is an unsupported button, like keyboardButtonRequestPhone, keyboardButtonRequestGeoLocation, keyboardButtonSwitchInlinekeyboardButtonBuy; you will have to parse data from these buttons manually

Читать полностью…

PWRTelegram API channel

The new bot API update introduced several awesome features, and they were all automagically integrated into the pwrtelegram bot API.
I'm working on some awesome pwrtelegram improvements for instant views! :DD

Читать полностью…

PWRTelegram API channel

You can now delete service messages with the deleteMessages method!

Читать полностью…

PWRTelegram API channel

PWRTelegram is now hosted on a new server with ipv6 connectivity, kindly provided by our known stranger <3

Читать полностью…

PWRTelegram API channel

MadelineProto now supports telegram's undocumented data transfer protocol, obfuscated2!
It will be automatically enabled for API ids smaller than 20: these are usually API ids of official apps that recommend connecting through obfuscated2 (no more outdated app notifications!).
You can also enable it manually from the settings.
There are no benefits of using obfuscated2 over the tcp_full, tcp_intermediate, tcp_abridged, http, https protocols (all supported by MadelineProto): however, if your ISP blocks telegram connections, using the obfuscated2 protocol may help bypass such limitations.

Читать полностью…

PWRTelegram API channel

These are the color schemes for ULTRA_VERBOSE, VERBOSE, NOTICE, WARNING, ERROR, FATAL_ERROR logs, respectively.

Читать полностью…

PWRTelegram API channel

(But really, you could've just read pwrtelegram.xyz, it contains all of the info you need)

Читать полностью…

PWRTelegram API channel

MadelineProto was updated to layer 68!
It now supports the new group management features, and you can now use it to create, delete and edit stickerpacks, without the @stickers bot: https://daniil.it/MadelineProto/API_docs/methods/#stickers_addStickerToSet

See daniil.it/MadelineProto for more info.

Читать полностью…

PWRTelegram API channel

Fixes were made to the Lua module of MadelineProto.
To use MadelineProto in lua, read daniil.it/MadelineProto

Читать полностью…

PWRTelegram API channel

Fixed CTR encryption, and fixed downloading of CDN files.

Читать полностью…

PWRTelegram API channel

MadelineProto now fully supports secret chats (and supports sending/download round videos in secret chats!), see secret_bot.php for an example of secret chat bots.
https://github.com/danog/MadelineProto

Читать полностью…

PWRTelegram API channel

MadelineProto can now be proxied! See daniil.it/MadelineProto for more info.

Читать полностью…

PWRTelegram API channel

Also, I'm glad to inform you that the PWRTelegram API can now upload video notes (round videos) up to 1.5 GB in size, even from URLs!

Читать полностью…

PWRTelegram API channel

We're having some DNS issues with our web properties. Messaging is alive and well, but your bot may have trouble reaching api.telegram.org until this is resolved. Working on this, back soon!

Sorry about that.

Читать полностью…

PWRTelegram API channel

MadelineProto was updated!
It is now EVEN faster, and has lots of nice method wrappers!
See https://daniil.it/MadelineProto for more info!

Читать полностью…

PWRTelegram API channel

MadelineProto was updated!
This release features:

* HUGE performance fixes
* better thread safety
* round videos support
* clickable buttons
* easier settings management, you can now simply edit the settings attribute of the API class to edit the settings!

And much more!
Check out https://daniil.it/MadelineProto for more info!

Читать полностью…

PWRTelegram API channel

MadelineProto is always a step ahead of the bot API, for example, it can already call the payment methods:
http://daniil.it/MadelineProto/API_docs/methods/payments_clearSavedInfo.html
http://daniil.it/MadelineProto/API_docs/methods/payments_getPaymentForm.html
http://daniil.it/MadelineProto/API_docs/methods/payments_getPaymentReceipt.html
http://daniil.it/MadelineProto/API_docs/methods/payments_getSavedInfo.html
http://daniil.it/MadelineProto/API_docs/methods/payments_sendPaymentForm.html
http://daniil.it/MadelineProto/API_docs/methods/payments_validateRequestedInfo.html

There are lots of other methods that are not enabled in any official client yet, for the full list see https://daniil.it/MadelineProto/API_docs/methods
Some of these methods may not work on the main servers, but will work on the testing servers, use the config found in .env.calls to access them.

Читать полностью…

PWRTelegram API channel

Check out https://github.com/danog/MagicalSerializer
It's an awesome library that allows you to easily serialize built-in PHP classes (like Threaded, Volatile, PDO, and so on) or classes that extend them!

Читать полностью…
Subscribe to a channel