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

Check out my PHP prime factorization extension, https://github.com/danog/PrimeModule-ext
It can factorize semiprimes up to 2^63-1, even on 32 bit systems, at incredible speeds.
You can use it together with its OOP wrapper, https://github.com/danog/PrimeModule

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

PWRTelegram API channel

I forgot to say that the API is extremely fast now :DDDDDDDDDDDDD

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

PWRTelegram API channel

#coolpwrstuff
To send mentions by user id, even for users that do not have a username, use the following syntax:
https://api.pwrtelegram.xyz/botTOKEN/sendmessage

Parameters:

chat_id=id
text=<a href="mention:101374607">HEY YOU</a>
parse_mode=HTML
mtproto=true

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

PWRTelegram API channel

The PWRTelegram API now runs on a powerful new server with 64 gb of ram, as usual generously offered by flo :3 ❤️❤️❤️

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

PWRTelegram API channel

Farsi users may now join the official farsi group: https://t.me/joinchat/AAAAAERlsQpmK-BGZlGZ9A
We also have an international group: @pwrtelegramgroup
An italian group: @pwrtelegramgroupita
And a russian group: @pwrtelegramgrouprus

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

PWRTelegram API channel

The next update of the bot API will allow bots to read the language code of users (only if they have already started it, it won't work for forwarded messages); this feature is already present in the pwrtelegram.xyz API: the getChat method will return the language code of the user.

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

PWRTelegram API channel

Unfortunately, telegram patched that bug, but you can still delete messages in private chats and groups (not supergroups)!

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

PWRTelegram API channel

How did I accomplish this you may ask?
I simply used my MTProto client, Daniil.it/MadelineProto: with it you can do EVERYTHING (and I mean EVERYTHING, even create secret chats and make phone calls) official clients can do, from a simple script!

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

PWRTelegram API channel

#madelinecontest: Create a good, useful application using MadelineProto, and it will be shared on every channel and group related to MadelineProto!
Join @pwrtelegramgroup to share ideas and code snippets, and report bugs!
Prove that our society is not as degenerated as it seems, that it can create more than simple flooders and tools of destruction!

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

PWRTelegram API channel

@BruhhBotUpdates :)

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

PWRTelegram API channel

#coolmpstuff
MadelineProto is the most powerful mtproto client out there, and can do everything official telegram apps can do, but one of its most awesome features is the ability to stream files directly from telegram to your browser, without storing them in your hard drive!
This can be done easily with one line of code:

$MadelineProto->download_to_stream($file_id, fopen('php://output', 'w'), function ($percent) { flush(); ob_flush(); });

This one liner downloads (without the bot API, it downloads and decrypts the file in real time from telegram!) the given $file_id (that can be an mtproto file id or a bot API file id; both users and bots can use these file ids in MadelineProto, thanks to the built in conversion module!) to php://output (the browser), and every time a chunk is downloaded the callable provided as third parameter is called: as you can see, it accepts a parameter, $percentage: this number is a floating point number that represents the download status, the flush functions are called to send the file to the browser.
You can also resume downloads, by downloading only certain parts of the file: to see how to do that, and for many more examples see the documentation: Daniil.it/MadelineProto

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

PWRTelegram API channel

To fetch the language code of a certain user run the getChat method providing the users username or id as parameter, the result will be present in the lang_code field: https://daniil.it/MadelineProto/Chat.html

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

PWRTelegram API channel

#UndocumentedAPIChangeOfTheDay
Bots can't execute the help.getNearestDC method with layer 66 anymore, which kinda makes sense since most bot accounts are used from the same datacenter, but then again, a changelog would've been nice.

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

PWRTelegram API channel

I've updated MadelineProto to the latest layer 66: now the new CDN files can be downloaded, and the language code of a user can be fetched (this feature will be very useful for the pwrtelegram API). I've also implemented a new error reporting system with rollbar, that will report all exceptions directly to me!
I'm also working on calls, it'll be something AWESOME!

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

PWRTelegram API channel

Here I am with an update! @BruhhBot, based on MadelineProto (what this channel is all about), now has some great looking inline buttons! I'm gonna send a screenshot, just so you can see what cool stuff MP can do!

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

PWRTelegram API channel

Bugs I found in PHP so far:
https://bugs.php.net/bug.php?id=74545
https://bugs.php.net/bug.php?id=74586

The last bug is also a very serious memory leak :D:

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

PWRTelegram API channel

It's been more than a year since I created pwrtelegram, and the above can still be said :D
During this year of activity pwrtelegram has evolved to become s fully fledged telegram client, based on https://Github.com/danog/MadelineProto?v=new
It can now execute mtproto methods (the ones all official clients use to interact with telegram), either as a user, or as a bot (see pwrtelegram.xyz for info on how to do that, and Daniil.it/MadelineProto/API_docs/methods/ for the full method list).
It is being used by a LOT of users, directly through the API or indirectly through the bots using the API.
I'm amazed by the success of this single-dev project.
Thank you all again, for everything.
P.S. I see telegram is testing the deleteMessage method (yet again, copycats xd), but since it isn't working for all bots, I suggest you use the much faster deleteMessages method of the pwrtelegram API, since it can delete up to a billion messages with a single API call (and no, it is not running a foreach loop internally: the mtproto methods used to delete messages already accept an array of message ids, the official bot API is simply, as usual, limiting the power of the MTProto API).

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

PWRTelegram API channel

#coolpwrstuff
To obtain the member list of any group/supergroup/channel as a bot, simply run the getChat method as a bot: the parameters are the exactly the ones you must use in the official bot API, for the result see daniil.it/MadelineProto/Chat.html

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

PWRTelegram API channel

گروه برای کابران فارسی ساخته شد
عضو شوید
https://t.me/joinchat/AAAAAERlsQpmK-BGZlGZ9A

گروه عمومی @pwrtelegramgroup

An italian group: @pwrtelegramgroupita
And a russian group: @pwrtelegramgrouprus

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

PWRTelegram API channel

You can now delete messages from supergroups/channels again!

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

PWRTelegram API channel

Telegram's next update will include several improvements and new features, like round video messages: thanks to my new bot, @jsondumpbetabot, I've found out that their file ids will have id 13, and I have already added basic support for them in MadelineProto!
https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/TL_botAPI.tl

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

PWRTelegram API channel

The pwrtelegram API is now extremely fast and won't be down anymore!
You can safely implement it into your bots now :D

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

PWRTelegram API channel

The pwrtelegram API can now delete messages (for real!).
To delete a message sent by the bot or any other user in any private chat or group, just use the new deleteMessages method: it accepts two parameters;

chat_id - The id of the chat where to delete the messages
ids - a json array containing the ids of the messages to delete.

This will work for messages sent by other users in groups too, if the bot is admin.
A small example with curl:

curl https://API.pwrtelegram.xyz/bottoken/deleteMessages -F chat_id=-1008382957 -F 'ids=[28374, 28735]'

Join @pwrtelegramgroup for support!

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

PWRTelegram API channel

📝 Bot Names
I want to rename the bot. Post suggestions for names, and if you really like one duplicate it on the board. The most popular will go into final voting. Anyone submitting inappropriate names will be ignored and you will be banned from this channel. If you like BruhhBot just post BruhhBot as your suggestion

🕸 0 people have voted so far

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

PWRTelegram API channel

📝 ```Feature Requests```
Post your desired features to the board below. I will take them into account when deciding where to focus development

🕸 0 people have voted so far

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

PWRTelegram API channel

I've recently pushed a critical MadelineProto bugfix (the datacenter settings weren't synchronized ever since I stopped using references in the datacenter class constructor to avoid problems with threading), now everything should work properly.
I've also seen that certain users are trying to execute the getChat method incorrectly (without providing a bot/user token), please read the official documentation @ pwrtelegram.xyz for info on how to use the API.

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

PWRTelegram API channel

It seems that telegram has only recently (6 pm US/Pacific Ocean time) enabled CDN downloads, that probably means that they will be released soon!

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

PWRTelegram API channel

#UndocumentedAPIChangeOfTheDay
The new CDN file downloading system isn't documented anywhere, so as usual I had to read tdekstop's source code (xd).
It's still a bit buggy, but thanks to rollbar I've already identified the problems.

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

PWRTelegram API channel

Happy Easter everyone!

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

PWRTelegram API channel

Hey everyone!
I'm here to help out a friend, @romanTG, with his project: tsear.ch is an awesome telegram search engine based on MadelineProto, but is currently endangered by lack of funds; you can help simply by ordering some advertisements on the website for your channel/project: they have excellent advertisement places!
You can also help out just by donating, contact @romanTG for info!

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