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…
Unfortunately, telegram patched that bug, but you can still delete messages in private chats and groups (not supergroups)!
Forwarded from MadelineProto | Official 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
https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/TL_botAPI.tl
Forwarded from Daniil Gentili's news 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
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…
You can now delete messages from supergroups/channels again!
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
We also have an international group: @pwrtelegramgroup
An italian group: @pwrtelegramgroupita
And a russian group: @pwrtelegramgrouprus
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
گروه برای کابران فارسی ساخته شد
عضو شوید
https://t.me/joinchat/AAAAAERlsQpmK-BGZlGZ9A
گروه عمومی @pwrtelegramgroup
An italian group: @pwrtelegramgroupita
And a russian group: @pwrtelegramgrouprus
عضو شوید
https://t.me/joinchat/AAAAAERlsQpmK-BGZlGZ9A
گروه عمومی @pwrtelegramgroup
An italian group: @pwrtelegramgroupita
And a russian group: @pwrtelegramgrouprus
The PWRTelegram API now runs on a powerful new server with 64 gb of ram, as usual generously offered by flo :3 ❤️❤️❤️
#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
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
MadelineProtoDocs
PWRTelegram chat
chat attributes, type and example
#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
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
Hello! I've got a lot of features cookin' and I'd like to ask you a question: is there any other feature you want me to add in the next release? Answer by writing to the group @pwrtelegramgroup.
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).
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).
GitHub
danog/MadelineProto
MadelineProto - PHP implementation of the telegram mtproto protocol (better tg-cli).
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…
I forgot to say that the API is extremely fast now :DDDDDDDDDDDDD
Forwarded from Daniil Gentili's news 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:
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:
Forwarded from Daniil Gentili's news 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
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
GitHub
GitHub - danog/PrimeModule-ext: C++ header-only library, binary and FFI library for factorizing huge 64-bit numbers.
C++ header-only library, binary and FFI library for factorizing huge 64-bit numbers. - danog/PrimeModule-ext
Forwarded from Daniil Gentili's news 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!
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!
GitHub
GitHub - danog/MagicalSerializer: Serialize internal PHP objects!
Serialize internal PHP objects! Contribute to danog/MagicalSerializer development by creating an account on GitHub.
You can now delete service messages with the deleteMessages method!
Forwarded from MadelineProto | Official 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.
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.
daniil.it
payments.clearSavedInfo
payments.clearSavedInfo parameters, return type and example
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
I'm working on some awesome pwrtelegram improvements for instant views! :DD
Forwarded from MadelineProto | Official 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!
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!
docs.madelineproto.xyz
Async PHP client API for the telegram MTProto protocol
Forwarded from MadelineProto | Official 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 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
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
MadelineProtoDocs
updateNewMessage
New message.