pwrtelegram | Саморазвитие

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

Подписаться на канал

PWRTelegram API channel

https://news.ycombinator.com/item?id=14892992

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

PWRTelegram API channel

Fixed emoji key verification, use $controller->getVisualization() to fetch it (see https://daniil.it/MadelineProto/API_docs/constructors/updatePhoneCall.html -> phone_call) for more info.
Also, made some important fixes to php-libtgvoip, please update both MadelineProto and libtgvoip.

@magnaluna now sends you the verification emojis when the call gets accepted!

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

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

PWRTelegram quality 👌👌👌👌👌👌👌👌👌👌👌👌👌🦋🦋🦋

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

PWRTelegram API channel

Protip: when calling such userbot webradios, mute your mic to reduce data usage.

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

PWRTelegram API channel

But since no one reads the manual

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

PWRTelegram API channel

can we already change our Bio with pwrTelegram? 🤔

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

PWRTelegram API channel

And now the debugging is over! You can now call @magnaluna!

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

PWRTelegram API channel

Telegram, please fix your RPC proxy, I'm getting INTERDC4_CALL_RICH_ERRORs while accepting calls

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

PWRTelegram API channel

Also, the MadelineProto API documentation now has examples for pwrtelegram!

Here's the full mtproto method list for pwrtelegram: https://daniil.it/MadelineProto/API_docs/methods

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

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

https://twitter.com/DaniilGentili/status/892049600818929665 +++++++

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

PWRTelegram API channel

@magnaluna now has lotsa more groovy swing songs! :D
P.S. The order is chosen randomly, so if you don't want to wait for the current song to end, you can simply recall the webradio to listen to another song!

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

PWRTelegram API channel

MadelineProto now has nice TL stack traces, less memory usage, and better dialog list fetching!
Run git pull && composer update in the MadelineProto repo ASAP, old instances of MadelineProto will throw "Please update MadelineProto" exceptions.

php-libtgvoip also has nice stack traces now, run git pull && git submodule init && git submodule update && git submodule sync && make && sudo make install in the php-libtgvoip repo (run git clone --recursive https://github.com/danog/php-libtgvoip && cd php-libtgvoip && make && sudo make install) note that you must now install binutils-dev in order to compile the backward-cpp module that provides stack traces.
If you have any problems, do write @pwrtelegramgroup

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

PWRTelegram API channel

Write "pizza" to @pizzaBio and the counter in his Bio goes up 😂

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

PWRTelegram API channel

= please, please read the manual before asking anything (pwrtelegram.xyz, daniil.it/MadelineProto/API_docs/methods).
PWRTelegram has hundreds of different methods, and can do everything official clients can do, you just gotta read the manual.

The answer to the very common question "Can MadelineProto/PWRTelegram do X", where X is something official clients do, is always "yes, please read the manual ❤️"

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

PWRTelegram API channel

You could always do that

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

PWRTelegram API channel

COME ON I'M WAITING FOR DEM CALL FLOODS ;) ❤️

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

PWRTelegram API channel

Bear with me while I debug this userbot, this is its first load test

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

PWRTelegram API channel

Here's the username of the first telegram webradio: call it to listen to some top quality swing!
@magnaluna

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

PWRTelegram API channel

Now you can create telegram webradios! :D

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

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.

Читать полностью…
Подписаться на канал