PWRTelegram API canale italiano
46 subscribers
1 photo
1 file
48 links
Canale ufficiale della bot API PWRTelegram.

Creatore: @danogentili

Gruppo italiano: @pwrtelegramgroupita

Canale inglese: @pwrtelegram

Istruzioni d'installazione: https://pwrtelegram.xyz

Codice sorgente: https://github.com/pwrtelegram
Download Telegram
Ma c'è il gruppo++++++ @pwrtelegramgroupita per quello! <3<3<3
Comunque, ci sono novità in arrivo!
È un piacere collaborare con Daniil! Mi occuperò di tradurre i post e molte altre cose (tipo le scritture in "ponese" di Daniil <3).
Ora MadelineProto supporta le chiamate, le chat segrete, i nuovi file id della bot API, interazione con il Lua, e molto altro in più!
http://daniil.it/MadelineProto
Forwarded from 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!
MadelineProto was updated!
It is now EVEN faster, and has lots of nice method wrappers!
See https://daniil.it/MadelineProto for more info!
MadelineProto è stato aggiornato al layer 68!
Ora supporta le nuove funzionalità di gestione dei gruppi e può essere usata per creare, cancellare e modificare stickerpacks senza il bot @stickers:
https://daniil.it/MadelineProto/API_docs/methods/#stickers_addStickerToSet

Visita https://daniil.it/MadelineProto per ulteriori informazioni.
Forwarded from MadelineProto | Official Channel (Daniil Gentili [ p o n y a e s t h e t i c)
MadelineProto ora supporta il protocollo di trasferimento dati non documentato di Telegram, obfuscated2!
Sarà attivato automaticamente per API id inferiori a 20: questi sono di solito gli API id di app ufficiali che consigliano di collegarsi attraverso obfuscated2 (addio notifiche di client non aggiornati!).
È inoltre possibile attivarlo manualmente dalle impostazioni.
Il protocollo obfuscated2 non ha molti vantaggi rispetto ai protocolli tcp_full, tcp_intermediate, tcp_abridged, http, https (tutti già supportati da MadelineProto): tuttavia, se il vostro ISP blocca le connessioni a Telegram, il protocollo obfuscated2 può aiutare a bypassare tali limitazioni.
Forwarded from MadelineProto Italia | Canale ufficiale (Daniil Gentili @magnaluna webradio)
Sapevate che MadelineProto può gestire chat segrete, ottenere la lista completa dei membri di gruppi/canali, impostare limitazioni granulari agli utenti nei gruppi (vietato inviare sticker o gif o media o giochi o bot inline o link) e nei canali/supergruppi (possono inviare messaggi o modificare messaggi o eliminare messaggi o bannare utenti o invitare utenti o creare link d'invito o aggiungere admin o pinnare messaggi) loggarsi come utente, riprodurre file musicali in chiamate vocali, caricare/scaricare file fino a 1.5 gb, unirsi a gruppi, impostare password per l'autenticazione a due passaggi, eseguire pagamenti via bot, cambiare lo sfondo delle chat, segnalare utenti come spam, inviare messaggi a tutti gli utenti/gruppi nella propria lista chat, impostare bio (anche lunghe), creare/eliminare gruppi/canali/supergruppi, creare account telegram, premere pulsanti di tastiere inline/normali, aggiungere contatti, aggiungere utenti a gruppi, ottenere le versioni instant view di pagine web, bloccare utenti, scaricare le traduzioni default di telegram direttamente dai loro server, cambiare la propria propic, creare/aggiungere/rimuovere sticker, fare tutto quello che fanno i bot normali, cercare messaggi/utenti, e in generale fare tutto ciò che le app ufficiali possono fare, da script lua/php?
Forwarded from MadelineProto Italia | Canale ufficiale (Daniil Gentili @magnaluna webradio)
MadelineProto è ora approvato da telegram: telegram.org/apps

Cos'è MadelineProto?

È una libreria per creare bot, userbot, e webradio.

Può loggarsi come bot, o come utente telegram normale, e può:
- gestire chat segrete
- riprodurre file musicali in chiamate vocali
- caricare/scaricare file fino a 1.5 gb
- unirsi a gruppi
- impostare password per l'autenticazione a due passaggi
- eseguire pagamenti via bot
- cambiare lo sfondo delle chat
- segnalare utenti come spam
- inviare messaggi a tutti gli utenti/gruppi nella propria lista chat
- impostare bio (anche lunghe)
- creare/eliminare gruppi/canali/supergruppi
- creare account telegram
- premere pulsanti di tastiere inline/normali
- aggiungere contatti, aggiungere utenti a gruppi
- ottenere le versioni instant view di pagine web
- bloccare utenti
- impostare limitazioni granulari agli utenti nei gruppi (vietato inviare sticker o gif o media o giochi o bot inline o link) e nei canali/supergruppi (possono inviare messaggi o modificare messaggi o eliminare messaggi o bannare utenti o invitare utenti o creare link d'invito o aggiungere admin o pinnare messaggi)
- ottenere la lista completa dei membri di gruppi/canali
- scaricare le traduzioni default di telegram direttamente dai loro server
- cambiare la propria propic
- creare/aggiungere/rimuovere sticker
- creare/aggiungere/rimuovere bot
- cercare messaggi/utenti
- fare tutto quello che fanno i bot normali
- fare tutto ciò che le app ufficiali possono fare
- e molto altro!


Supporta tutti i maggiori linguaggi di programmazione (PHP/Lua/python/js/rust/c++/elixir/java/kotlin), e da oggi è approvata da telegram, come potete vedere dalla lista dei client su telegram.org/apps
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated!

Fully asynchronous MadelineProto!

MadelineProto now features async, for incredible speed improvements, and parallel processing.

The telegram API changelog is just enormous, and the MadelineProto API changelog is even bigger, so I'll split this in multiple messages.

Boring Telegram API changelog: https://tttttt.me/MadelineProto/431
MadelineProto API changelog (read this): https://tttttt.me/MadelineProto/437
Future MadelineProto API features: https://tttttt.me/MadelineProto/449
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Changed Methods:

Added settings param to auth.sendCode
Removed flags param from auth.sendCode
Removed allow_flashcall param from auth.sendCode
Removed current_number param from auth.sendCode
Added password param to auth.checkPassword
Removed password_hash param from auth.checkPassword
Added hash param to account.getWallPapers
Added settings param to account.sendChangePhoneCode
Removed flags param from account.sendChangePhoneCode
Removed allow_flashcall param from account.sendChangePhoneCode
Removed current_number param from account.sendChangePhoneCode
Added password param to account.getPasswordSettings
Removed current_password_hash param from account.getPasswordSettings
Added password param to account.updatePasswordSettings
Removed current_password_hash param from account.updatePasswordSettings
Added settings param to account.sendConfirmPhoneCode
Removed flags param from account.sendConfirmPhoneCode
Removed allow_flashcall param from account.sendConfirmPhoneCode
Removed current_number param from account.sendConfirmPhoneCode
Added password param to account.getTmpPassword
Removed password_hash param from account.getTmpPassword
Added settings param to account.sendVerifyPhoneCode
Removed flags param from account.sendVerifyPhoneCode
Removed allow_flashcall param from account.sendVerifyPhoneCode
Removed current_number param from account.sendVerifyPhoneCode
Added peer param to messages.exportChatInvite
Removed chat_id param from messages.exportChatInvite
Removed stop_geo_live param from messages.editMessage
Removed geo_point param from messages.editMessage
Removed stop_geo_live param from messages.editInlineBotMessage
Removed geo_point param from messages.editInlineBotMessage
Added source param to help.getAppUpdate
Added flags param to phone.setCallRating
Added user_initiative param to phone.setCallRating
Added lang_pack param to langpack.getLangPack
Added lang_pack param to langpack.getStrings
Added lang_pack param to langpack.getDifference
Added lang_code param to langpack.getDifference
Added lang_pack param to langpack.getLanguages
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Deleted Methods (other methods can be used, instead):

Removed contacts.exportCard
Removed contacts.importCard
Removed messages.toggleChatAdmins
Removed channels.editAbout
Removed channels.exportInvite
Removed channels.toggleInvites
Removed channels.updatePinnedMessage
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
New Constructors:

Added inputMediaPoll
Added messageMediaPoll
Added messageActionContactSignUp
Added photoStrippedSize
Added inputNotifyBroadcasts
Added inputReportReasonChildAbuse
Added inputReportReasonCopyright
Added updateUserPinnedMessage
Added updateChatPinnedMessage
Added updateMessagePoll
Added updateChatDefaultBannedRights
Added notifyBroadcasts
Added inputPrivacyKeyPhoneP2P
Added inputPrivacyKeyForwards
Added inputPrivacyKeyProfilePhoto
Added privacyKeyPhoneP2P
Added privacyKeyForwards
Added privacyKeyProfilePhoto
Added channelParticipantsContacts
Added textSubscript
Added textSuperscript
Added textMarked
Added textPhone
Added textImage
Added textAnchor
Added pageBlockKicker
Added pageBlockTable
Added pageBlockOrderedList
Added pageBlockDetails
Added pageBlockRelatedArticles
Added pageBlockMap
Added channelAdminLogEventActionDefaultBannedRights
Added channelAdminLogEventActionStopPoll
Added secureValueError
Added secureValueErrorTranslationFile
Added secureValueErrorTranslationFiles
Added passwordKdfAlgoUnknown
Added passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow
Added securePasswordKdfAlgoUnknown
Added securePasswordKdfAlgoPBKDF2HMACSHA512iter100000
Added securePasswordKdfAlgoSHA512
Added secureSecretSettings
Added inputCheckPasswordEmpty
Added inputCheckPasswordSRP
Added secureRequiredType
Added secureRequiredTypeOneOf
Added help.passportConfigNotModified
Added help.passportConfig
Added jsonObjectValue
Added jsonNull
Added jsonBool
Added jsonNumber
Added jsonString
Added jsonArray
Added jsonObject
Added pageTableCell
Added pageTableRow
Added pageCaption
Added pageListItemText
Added pageListItemBlocks
Added pageListOrderedItemText
Added pageListOrderedItemBlocks
Added pageRelatedArticle
Added page
Added help.supportName
Added help.userInfoEmpty
Added help.userInfo
Added pollAnswer
Added poll
Added pollAnswerVoters
Added pollResults
Added chatOnlines
Added statsURL
Added chatAdminRights
Added chatBannedRights
Added inputWallPaper
Added inputWallPaperSlug
Added account.wallPapersNotModified
Added account.wallPapers
Added codeSettings
Added wallPaperSettings
Added autoDownloadSettings
Added account.autoDownloadSettings
Added emojiKeyword
Added emojiKeywordDeleted
Added emojiKeywordsDifference
Added emojiURL
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Changed Constructors:

Added flags param to inputMediaGeoLive
Added stopped param to inputMediaGeoLive
Added file_reference param to inputPhoto
Added file_reference param to inputFileLocation
Added file_reference param to inputDocumentFileLocation
Removed version param from inputDocumentFileLocation
Added file_reference param to fileLocation
Added admin_rights param to chat
Added default_banned_rights param to chat
Removed admins_enabled param from chat
Removed admin param from chat
Added default_banned_rights param to channel
Removed editor param from channel
Removed democracy param from channel
Added flags param to chatFull
Added can_set_username param to chatFull
Added about param to chatFull
Added pinned_msg_id param to chatFull
Added can_view_stats param to channelFull
Added online_count param to channelFull
Added file_reference param to photo
Added flags param to wallPaper
Added creator param to wallPaper
Added default param to wallPaper
Added pattern param to wallPaper
Added dark param to wallPaper
Added access_hash param to wallPaper
Added slug param to wallPaper
Added document param to wallPaper
Added settings param to wallPaper
Removed title param from wallPaper
Removed sizes param from wallPaper
Removed color param from wallPaper
Added can_pin_message param to userFull
Added pinned_msg_id param to userFull
Added flags param to messages.messagesSlice
Added inexact param to messages.messagesSlice
Added lang_code param to updateLangPackTooLong
Added pfs_enabled param to config
Added base_lang_pack_version param to config
Added flags param to help.appUpdate
Added popup param to help.appUpdate
Added version param to help.appUpdate
Added entities param to help.appUpdate
Added document param to help.appUpdate
Removed critical param from help.appUpdate
Added file_reference param to inputDocument
Added flags param to document
Added file_reference param to document
Added thumbs param to document
Removed thumb param from document
Removed version param from document
Added current param to authorization
Added official_app param to authorization
Added password_pending param to authorization
Added has_password param to account.password
Added current_algo param to account.password
Added srp_B param to account.password
Added srp_id param to account.password
Added new_algo param to account.password
Added new_secure_algo param to account.password
Removed current_salt param from account.password
Removed new_salt param from account.password
Removed new_secure_salt param from account.password
Added flags param to account.passwordSettings
Added secure_settings param to account.passwordSettings
Removed secure_salt param from account.passwordSettings
Removed secure_secret param from account.passwordSettings
Removed secure_secret_id param from account.passwordSettings
Added new_algo param to account.passwordInputSettings
Added new_secure_settings param to account.passwordInputSettings
Removed new_salt param from account.passwordInputSettings
Removed new_secure_salt param from account.passwordInputSettings
Removed new_secure_secret param from account.passwordInputSettings
Removed new_secure_secret_id param from account.passwordInputSettings
Added thumb param to stickerSet
Added self param to channelParticipantAdmin
Added from_name param to messageFwdHeader
Removed ordered param from pageBlockList
Added flags param to pageBlockPhoto
Added url param to pageBlockPhoto
Added webpage_id param to pageBlockPhoto
Added flags param to phoneCall
Added p2p_allowed param to phoneCall
Added flags param to langPackLanguage
Added official param to langPackLanguage
Added rtl param to langPackLanguage
Added beta param to langPackLanguage
Added base_lang_code param to langPackLanguage
Added plural_code param to langPackLanguage
Added strings_count param to langPackLanguage
Added translated_count param to langPackLanguage
Added translations_url param to langPackLanguage
Added translation param to secureValue
Added translation param to inputSecureValue
Removed selfie_required param from account.authorizationForm
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Deleted Constructors (other constructors can be used, instead):

Removed wallPaperSolid
Removed updateContactRegistered
Removed updateChatAdmins
Removed account.noPassword
Removed pagePart
Removed pageFull
Removed channelAdminRights
Removed channelBannedRights
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Fully asynchronous MadelineProto!

MadelineProto now features async, for incredible speed improvements, and parallel processing.
Powered by amphp, MadelineProto wraps the AMPHP APIs to provide a simpler generator-based async API.

What exactly is async, you may ask, and how is it better than threading or multiprocessing?
Async is a relatively new programming pattern that allows you to easily write non-blocking code as if you were using standard blocking functions.


More simply put: with MadelineProto 4.0, each update is handled in parallel using a separate thread, and everything is MUCH faster (even on restricted webhosts; this is perfect for creating file downloader bots!).

To enable async, you have to do two simple things:
1) Load the latest version of MadelineProto
2) yield your method calls.


That's it!
No need to set up thread pools, use synchronization primitives, and so on...
Just yield $MadelineProto->messages->sendMessage instead of $MadelineProto->messages->sendMessage.
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
And now, on to the API changes:
- First of all, we've got several bucketloads of telegram API changes, that can be viewed in the first posts.
- Very important, I wrote documentation on what to do if your account gets banned.
- Dropped support for PHP 5 and PHP 7.0: these versions of PHP have officially reached their end of life, so MadelineProto will not support them anymore.
You should use MadelineProto with PHP 7.3 (or PHP 7.2; PHP 7.1 is supported but not recommended).
- Dropped support for get_updates: it won't work properly on async, and I really recommend you stop using it
- You can now use the @support username in sendMessage and other methods to send messages to the support user!
- Now MadelineProto will automatically try to get the access hash of users not present in the internal peer database (this should reduce errors)!
- If any file cannot be downloaded to due issues with the tg media server that is hosting it, it will be automatically sent to the @support user (settings).
- Documented the MyTelegramOrgWrapper API, that can be used to login programmaticaly to the my.telegram.org management page and get the API ID of your app.
- Added an update_2fa method to update the login password
- Added a get_full_dialogs method to get a full list of all chats you’re member of, including dialog info (such as the pinned/last message ID, unread count, tag count, notification settings and message drafts).
- Added support for automatic file uploads by name in secret chats (as with normal chats); you can also now send secret chat messages using the sendMessage method as if it were a normal chat
- Added a resetUpdateState method to reset the update state and fetch ALL updates from the beginning
- Improved chat message splitting algorithm, for when the message you're trying to send is too long: performance improvements, and it will now notify you via the logs if there are too many entities in the logs, or if the entities are too long.
- Improved the get_self method.
- Added a __magic_sleep substitute for __sleep in the CombinedEventHandler
- Removed all dependencies to curl: now all HTTP requests are made asynchronously using a custom version of artax (more on that later).
- Updated php-libtgvoip and introduced a common API for changing phone call settings
- Improved the madeline.php loader
- Removed the old serialization APIs: now serialization is done automatically by MadelineProto!
- Increased the default flood wait limit to 10 minutes, since with async waiting for the flood wait isn't blocking anymore
- When running from web, MadelineProto will also automatically enable logging of PHP errors (not MadelineProto logs) to a MadelineProto.log file located in the same directory as the script that loaded MadelineProto.