madelineproto | Unsorted

Telegram-канал madelineproto - MadelineProto | Official Channel

7257

Official MadelineProto channel. Italian Channel: @MadelineProtoIta Group: @pwrtelegramgroup

Subscribe to a channel

MadelineProto | Official Channel

MadelineProto 8.0.1 adds support for styled text entities in polls, by adding a questionEntities property and a getQuestionHTML method to Poll a answerEntities property and a getHTML method to PollAnswer.

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta205)!

Features:
- Make getPropicInfo, getFullInfo and getPwrChat return Photo objects for profile pictures, compatible with sendPhoto methods.
- Make getPwrChat return a bit more info with fullfetch=false
- Update to layer 179

New Methods:
- auth.reportMissingCode

New Constructors:
- auth.sentCodeTypeSmsWord
- auth.sentCodeTypeSmsPhrase

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

MadelineProto | Official Channel

Rapid-fire releases today, since I have some free time :D

8.0.0-beta201 fixes:

- Fix performance issue caused by excessive GC-ing
- Fix Message::forward

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta199)!

Fixes:
- Fix issue with the peer database caused by the ORM migration (a relogin is recommended to fix peer database issues)
- Fix an issue where ReadableBuffers and other streams could not be used when uploading stories in certain conditions
- Move legacy polyfill classes to namespace to fix composer issues

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta194)!

Fixes:
- Fix memory leak
- Fix usage of RemoteUrl in some conditions
- Improve getUpdates
- Warn Termux users to move the session folder to $HOME
- Fix ogg conversion with the phar version
- Fix filename of files downloaded using getDownloadLink


Features:
- Add delay option to broadcast methods
- Update to layer 174, added peer param to messages.getSavedReactionTags and a few other minor changes.

Misc:
- Remove defaultTempAuthKeyExpiresIn setting, it should not be exposed to users


Download MadelineProto from docs.madelineproto.xyz!

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

MadelineProto | Official Channel


Changed Constructors:
- Added contact_require_premium param to user
- Added by_me param to userStatusRecently
- Added by_me param to userStatusLastWeek
- Added by_me param to userStatusLastMonth
- Added saved_peer_id param to message
- Added video param to messageMediaDocument
- Added round param to messageMediaDocument
- Added voice param to messageMediaDocument
- Added contact_require_premium param to userFull
- Added read_dates_private param to userFull
- Added saved_out param to messageFwdHeader
- Added saved_from_id param to messageFwdHeader
- Added saved_from_name param to messageFwdHeader
- Added saved_date param to messageFwdHeader
- Added hide_read_marks param to globalPrivacySettings
- Added new_noncontact_peers_require_premium param to globalPrivacySettings
- Added reactions_as_tags param to messageReactions

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

MadelineProto | Official Channel


Changed Methods:
- Added saved_peer_id param to messages.search
- Added saved_reaction param to messages.search
- Added saved_peer_id param to messages.getSearchCounters
- Added saved_peer_id param to messages.getSearchResultsCalendar
- Added saved_peer_id param to messages.getSearchResultsPositions

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

MadelineProto | Official Channel

Happy New Year everyone, best wishes for a happy and peaceful 2024.

May your new year be full of positive emotions and creative inspiration ❤️❤️❤️

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

MadelineProto | Official Channel

I wish you all a very jolly Christmas 🎄 ❤️

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

MadelineProto | Official Channel


Changed Constructors:
- Added profile_color param to channel
- Added emoji_status param to channel
- Added level param to channel
- Added wallpaper param to channelFull
- Added winners_are_visible param to messageMediaGiveaway
- Added prize_description param to messageMediaGiveaway
- Added peers param to messageActionRequestedPeer
- Removed peer param from messageActionRequestedPeer
- Added currency param to messageActionGiftCode
- Added amount param to messageActionGiftCode
- Added crypto_currency param to messageActionGiftCode
- Added crypto_amount param to messageActionGiftCode
- Added channel_emoji_status param to stickerSet
- Added max_quantity param to keyboardButtonRequestPeer
- Added emoticon param to wallPaperSettings
- Added winners_are_visible param to inputStorePaymentPremiumGiveaway
- Added prize_description param to inputStorePaymentPremiumGiveaway
- Added views_count param to stories.storyViewsList
- Added forwards_count param to stories.storyViewsList
- Added chats param to stories.storyViewsList
- Added channel_min_level param to help.peerColorOption

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

MadelineProto | Official Channel

Deleted Methods:
- help.getAppChangelog

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

MadelineProto | Official Channel

New Methods:
- account.getChannelDefaultEmojiStatuses
- account.getChannelRestrictedStatusEmojis
- channels.updateEmojiStatus
- stories.getStoryReactionsList

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

MadelineProto | Official Channel

The next release will probably feature a takeout API :)

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

MadelineProto | Official Channel

New Methods:
- account.updateColor
- account.getDefaultBackgroundEmojis
- messages.searchEmojiStickerSets
- help.getPeerColors
- help.getPeerProfileColors
- channels.updateColor
- channels.toggleViewForumAsMessages
- channels.getChannelRecommendations
- payments.getPremiumGiftCodeOptions
- payments.checkGiftCode
- payments.applyGiftCode
- payments.getGiveawayInfo
- payments.launchPrepaidGiveaway
- stats.getStoryStats
- stats.getStoryPublicForwards
- premium.getBoostsList
- premium.getMyBoosts
- premium.applyBoost
- premium.getBoostsStatus
- premium.getUserBoosts

Changed Methods:
Added invert_media param to messages.sendMessage
Added invert_media param to messages.sendMedia
Added invert_media param to messages.editMessage
Added invert_media param to messages.editInlineBotMessage
Added invert_media param to messages.saveDraft
Added reply_to param to messages.saveDraft
Added media param to messages.saveDraft
Removed reply_to_msg_id param from messages.saveDraft
Removed top_msg_id param from messages.saveDraft
Added invert_media param to messages.sendMultiMedia
Added for_both param to messages.setChatWallPaper
Added revert param to messages.setChatWallPaper
Added fwd_modified param to stories.sendStory
Added fwd_from_id param to stories.sendStory
Added fwd_from_story param to stories.sendStory

New Constructors:
- inputMediaWebPage
- messageMediaGiveaway
- messageActionGiftCode
- messageActionGiveawayLaunch
- messageActionGiveawayResults
- updateBotChatBoost
- updateChannelViewForumAsMessages
- updatePeerWallpaper
- inputBotInlineMessageMediaWebPage
- botInlineMessageMediaWebPage
- channelAdminLogEventActionChangeColor
- channelAdminLogEventActionChangeBackgroundEmoji
- inputInvoicePremiumGiftCode
- inputStorePaymentPremiumGiftCode
- inputStorePaymentPremiumGiveaway
- premiumGiftCodeOption
- payments.checkedGiftCode
- payments.giveawayInfo
- payments.giveawayInfoResults
- prepaidGiveaway
- boost
- premium.boostsList
- myBoost
- premium.myBoosts
- premium.boostsStatus
- storyFwdHeader
- postInteractionCountersMessage
- postInteractionCountersStory
- stats.storyStats
- publicForwardMessage
- publicForwardStory
- stats.publicForwards
- peerColor
- help.peerColorSet
- help.peerColorProfileSet
- help.peerColorOption
- help.peerColorsNotModified
- help.peerColors

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta156)!

Features:
- Added support for request cancellation to all methods.
- You can now specify a custom floodWaitLimit for each API method call.

Fixes:
- Multiple bugfixes, improved abstractions
- Improve queue logic
- Improve performance & cleanup method call code

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

MadelineProto | Official Channel

MadelineProto was updated!

8.0.0 is the first stable release of MadelineProto v8!

For the full changelog, see the messages on the official MadelineProto channel, starting from here!

Here are the main highlights:
- Amp v3 & revolt (fibers) support!
- A new simplified, stable and object-oriented event handler API based on filters and plugins!
- New sendVideo, sendAudio, sendDocument, etc methods with automatic metadata extraction via ffmpeg.
- A new getDownloadLink method for files up to 4gb!
- A new broadcast API, that can be used to asynchronously broadcast messages to all users of a bot or userbot in the background, automatically fetching all users of the bot!
- A pure PHP async VoIP implementation to make Telegram voice calls even on limited webhosts!
- An official docker image!
- Built-in static analysis of event handler code!
- Major performance and stability improvements!
- Many other new features and UX improvements, see all messages starting from /channel/MadelineProto/591 for more info!

Major parts of the MadelineProto core were split into standalone libraries that can be used without requiring all of MadelineProto:
- https://github.com/danog/AsyncOrm - Async ORM based on AMPHP v3 and fibers.
- https://github.com/danog/telegram-entities - A library to work with Telegram UTF-16 styled text entities.
- https://github.com/danog/tg-file-decoder - A library to work with Telegram bot API file IDs (recently updated).


The next releases will focus on even more features and performance improvements, such as prometheus and grafana statistics, a static TL parser and much, much more!

Cheers!

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta204)!

Features:
- Layer 178 (full changelog)

Fixes:
- Entity fixes
- Fix upload callbacks in the send* methods
- Fix issue with plugins in a phar
- Improve markdown parsing
- Remove temporary files created during error reporting
- Fix bug in getFullInfo

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

MadelineProto | Official Channel

MadelineProto was updated: 8.0.0-beta200 introduces new simple sendVideo, sendAudio, sendVoice, sendSticker, sendGif, sendDocumentPhoto methods that automatically extract duration, thumbnails and other metadata from audio and video files!

Also, sendDocument now supports automatic mime type detection for secret chats.

Additionally, Markdown and HTML parsing functionality was extracted in a separate library with bot API support, https://github.com/danog/telegram-entities!

Features:
- Add a new scheduled flag to the Message class for scheduled messages
- Split the markdown and HTML parser into a separate library, https://github.com/danog/telegram-entities
- Add new simple sendVideo, sendAudio, sendVoice, sendSticker, sendGif, sendDocumentPhoto methods and the Message::replyXXX variants that automatically extract duration, thumbnails and other metadata from audio and video files!
- sendDocument now supports automatic mime type detection for secret chats.

Fixes:
- Fix getPwrChat
- Fix methods that use legacy chats
- Multiple other bug fixes

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta195)!

This release extracts MadelineProto's async ORM into a separate library, danog/AsyncOrm: a PHP async ORM based on AMPHP v3 and fibers!

danog/AsyncOrm supports MySQL, Redis, Postgres, features read and write-back caching, type-specific optimizations, and much more!

Among other news, the danog/tg-file-decoder library was also updated&modernized.

Also, the downloadRenameBot.php was updated to support downloading videos directly from YouTube (without using the disk!), here's the new repo: https://github.com/danog/downloadRenameBot/

Breaking changes:
- Raise the minimum PHP version to 8.2.17.
- Move all ORM classes to the danog\AsyncOrm namespace
- Remove support for definition of ORM properties using $dbProperties, the new OrmMappedArray attribute should be used instead, see the new docs for more info and examples!
- Modernized and updated danog/tg-file-decoder, switching to enums and readonly properties.
- Use bot API IDs in all constructors returned by MadelineProto.
- Finalize all methods in the event handler.
- Enable strict static analysis for EventHandler.
- Removed the JSON and STRING serializer types from the ORM settings, the correct serializer will now be chosen based on the type of the value specified in OrmKeyedArray.
- Postgres/Redis MadelineProto instances need a manual database migration before upgrading (first updateSettings to the Memory backend, then upgrade, then updateSettings to Postgres/Redis); MySQL and Memory instances will be migrated automatically, no need to do anything.

Features:
- Update to layer 177, see here for the full layer changelog!
- Add support for the stable versions of amphp/mysql, amphp/postgres through https://github.com/danog/AsyncOrm!

Fixes:
- Fix Message::read!
- Multiple other bugfixes and performance improvements!

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta189)!

Features:
- Add Poll support in simple event handler messages
- Add topic and poll-related filters and simple filters
- Add FilterCommandCaseInsensitive, FilterForwardedFrom, FilterRegexMatchAll, FilterTextContains, FilterTextContainsCaseInsensitive, FilterTextEnds, FilterTextEndsCaseInsensitive, FilterTextStarts, FilterTextStartsCaseInsensitive filters
- Improve update coverage of existing filters, mainly FilterPeer now supports many more update types
- FilterRegex now supports specifying flags and an offset
- Add editReplyMarkup method to Messages
- Add support for recording the incoming audio stream of a VoIP call with setOutput
- Update to layer 172
- support more deep links and t.me links for getInfo, and all other methods

Fixes:
- Multiple bugfixes and improvements
- Fix getReply for secret chat messages and some other secret chat edge cases
- Fix QR code login in certain conditions
- Fix an edge case for webhost environments


amphp/mysql and amphp/postgres are still in beta, so I can't make a stable release just yet, but that's fine anyway :))

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

MadelineProto | Official Channel


New Constructors:
- updateSavedDialogPinned
- updatePinnedSavedDialogs
- updateSavedReactionTags
- savedDialog
- messages.savedDialogs
- messages.savedDialogsSlice
- messages.savedDialogsNotModified
- savedReactionTag
- messages.savedReactionTagsNotModified
- messages.savedReactionTags
- outboxReadDate

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

MadelineProto | Official Channel

New Methods:
- users.getIsPremiumRequiredToContact
- messages.getSavedDialogs
- messages.getSavedHistory
- messages.deleteSavedHistory
- messages.getPinnedSavedDialogs
- messages.toggleSavedDialogPin
- messages.reorderPinnedSavedDialogs
- messages.getSavedReactionTags
- messages.updateSavedReactionTag
- messages.getDefaultTagReactions
- messages.getOutboxReadDate

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

MadelineProto | Official Channel

Happy New Year everyone 🎉

MadelineProto 8.0.0-beta188 is the final release of this year, and quite possibily the final beta, as nearly all the amphp dependencies have now a stable release 🎉

This release actually releases the phar, bypassing and fixing an issue caused by a PHP bug :D

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

MadelineProto | Official Channel

Deleted Constructors:
- channelAdminLogEventActionChangeColor
- channelAdminLogEventActionChangeBackgroundEmoji

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

MadelineProto | Official Channel


New Constructors:
- messageMediaGiveawayResults
- updateBotMessageReaction
- updateBotMessageReactions
- inputStickerSetEmojiChannelDefaultStatuses
- channelAdminLogEventActionChangePeerColor
- channelAdminLogEventActionChangeProfilePeerColor
- channelAdminLogEventActionChangeWallpaper
- channelAdminLogEventActionChangeEmojiStatus
- storyViewPublicForward
- storyViewPublicRepost
- mediaAreaChannelPost
- inputMediaAreaChannelPost
- storyReaction
- storyReactionPublicForward
- storyReactionPublicRepost
- stories.storyReactionsList

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

MadelineProto | Official Channel


Changed Methods:
- Added requested_peers param to messages.sendBotRequestedPeer
- Removed requested_peer param from messages.sendBotRequestedPeer
- Added for_profile param to channels.updateColor
- Added offset param to stats.getMessagePublicForwards
- Removed offset_rate param from stats.getMessagePublicForwards
- Removed offset_peer param from stats.getMessagePublicForwards
- Removed offset_id param from stats.getMessagePublicForwards
- Added forwards_first param to stories.getStoryViewsList

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

MadelineProto | Official Channel

🎄 Merry Christmas everyone!🎄

This holiday release updates MadelineProto to layer 169, and brings a number of fixes (8.0.0-beta187)!

Breaking changes:
- Remove low-level peerChannel, peerChat, peerUser constructors everywhere from the API, replacing them with bot API IDs (integers).
- Remove legacy to_id field from legacy raw updates (the new SimpleEventHandler API has not changed, because it's covered by the backwards compatibility promise, unlike legacy raw updates)
- Remove flush() method: the postpone flag will now only postpone flushing to the end of the event loop queue, instead of never triggering it until flush() or a non-postponed method is called by
- Removed the deprecated getDialogs method, please use getDialogIds instead

Features:
- Add a getDiscussion method to ChannelMessage to obtain the comment section of a post as a GroupMessage.
- Document the built-in ORM: https://docs.madelineproto.xyz/docs/UPDATES.html#built-in-orm
- Add ChannelParticipant update, received whenever a participant leaves, joins or is banned or admined in a channel or supergroup by @ahjdev (github)
- Add a FilterTopicId filter to filter messages by topic ID by @ahjdev (github)
- Add queueId parameter to methods to allow enforcing server-side execution order when using postpone or invoking methods concurrently
- Add delete, pin, unpin, report methods to ChatButtonQuery and ChatGameQuery by @mtalaeii (github)

Fixes:
- Fix PHP 8.3 FFI usage for opus conversion.
- Misc usability and performance improvements.
More specifically, the access_hash field was removed from all public APIs, to avoid usage of outdated values.
- Fix various peer database issues
- Fix broadcasts
- Improve TL traces of IPC exceptions
- Misc update handling fixes
- Fix BotChatInviteRequest
- Update the source code of downloadRenameBot.php by @ahjdev (github)
- Report exceptions thrown from event handler to the report peer(s) of the current event handler when using multiple event handler with startAndLoopMulti or EventLoop::queue(MyEventHandler::startAndLoop(...), '...madeline');
Note that for performance reasons, some internal or connection exceptions not thrown from the event handler and exceptions thrown from onStart may still get reported (only to, or also to) the last started event handler.
- Completely remove postponing from the API to avoid unwanted side effects (sequentially queued requests are still bundled in a single container anyway)
- Use async output buffer stream with downloadToBrowser
- Secret chat media improvements

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

MadelineProto | Official Channel

Changed Constructors:
Added color param to user
Added profile_color param to user
Added color param to channel
Added view_forum_as_messages param to channelFull
Added invert_media param to message
Added force_large_media param to messageMediaWebPage
Added force_small_media param to messageMediaWebPage
Added manual param to messageMediaWebPage
Added safe param to messageMediaWebPage
Added same param to messageActionSetChatWallPaper
Added for_both param to messageActionSetChatWallPaper
Added view_forum_as_messages param to dialog
Added wallpaper_overridden param to userFull
Added invert_media param to updateServiceNotification
Added url param to webPageEmpty
Added url param to webPagePending
Added has_large_media param to webPage
Added color param to chatInvite
Added text_color param to stickerSet
Added invert_media param to inputBotInlineMessageMediaAuto
Added invert_media param to inputBotInlineMessageText
Added invert_media param to botInlineMessageMediaAuto
Added invert_media param to botInlineMessageText
Added invert_media param to draftMessage
Added reply_to param to draftMessage
Added media param to draftMessage
Removed reply_to_msg_id param from draftMessage
Added reactions_per_post param to stats.broadcastStats
Added views_per_story param to stats.broadcastStats
Added shares_per_story param to stats.broadcastStats
Added reactions_per_story param to stats.broadcastStats
Added reactions_by_emotion_graph param to stats.broadcastStats
Added story_interactions_graph param to stats.broadcastStats
Added story_reactions_by_emotion_graph param to stats.broadcastStats
Added recent_posts_interactions param to stats.broadcastStats
Removed recent_message_interactions param from stats.broadcastStats
Added quote param to messageReplyHeader
Added reply_from param to messageReplyHeader
Added reply_media param to messageReplyHeader
Added quote_text param to messageReplyHeader
Added quote_entities param to messageReplyHeader
Added quote_offset param to messageReplyHeader
Added reactions_by_emotion_graph param to stats.messageStats
Added app param to sponsoredMessage
Added button_text param to sponsoredMessage
Added trial_remains_num param to messages.transcribedAudio
Added trial_remains_until_date param to messages.transcribedAudio
Added fwd_from param to storyItem
Added reply_to_peer_id param to inputReplyToMessage
Added quote_text param to inputReplyToMessage
Added quote_entities param to inputReplyToMessage
Added quote_offset param to inputReplyToMessage

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta170)!

Features:
- Added a RestartPlugin that can be included to offer a /restart command to admins
- Add sendText method to AbstractMessage
- Add BotCommands, MessageForwards, MessageViewsChanged, UpdateChannel, BotChatInviteRequest, PendingJoinRequests, DeleteChannelMessages, DeleteMessages, DeleteScheduledMessages PinnedChannelMessages, PinnedGroupMessages, PinnedPrivateMessages SimpleEventHandler updates
- Add ChatInvite, ChatInviteExported, ChatInvitePublicJoin, Command SimpleEventHandler objects
- Update to layer 167
- Added support for ephemeral filesystems (i.e. docker containers with no volumes, storing all data on Mysql/Postgres/Redis) by setting a table prefix manually in the settings, see here » for more info.
- Enable jemalloc and function JIT in docker image to improve performance, and bumped the PHP version to 8.3.
- The login page now features an invitation to translate MadelineProto in your language, using weblate.madelineproto.xyz!
- Added an htmlEscape helper function for MadelineProto's HTML entity converter
- Support forwarding stories through sendMedia

Fixes:
- Fixed composer plugins
- Fix importAuthorization
- Improved public API a bit
- Multiple improvements
- Switch to LONGBLOB for session database, to cover some edge cases with event handlers with a lot of non-ORM properties.
- UNIX socket database connections
- Fix revoltphp bug
- Fix updatePinnedMessages conversion
- Fix QR code login in certain conditions
- Use different escaping rules for single-backtick codeblocks (only ` and \ need to be escaped inside of them now, escaping can be done with the new markdownCodeEscape method).
- Small auth logic bugfix
- Fix backwards conversion in the entitiesToHtml method
- Fix broadcasts with the broadcast API!

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

MadelineProto | Official Channel

MadelineProto was updated (8.0.0-beta153):

Features by @danogentili:
- Update to layer 165
- Full secret chat refactoring, fixing many issues and adding support for updateNewOutgoingEncryptedMessage updates.
- A huge amount of stability and performance improvements, updating to this version is strongly recommended.
- Added support for secret chats to the abstract sendDocument/sendPhoto/sendMessage methods.
- Reduce memory usage of secret chats by storing all messages in separate tables if a DB backend is used.
- Add cancellation support to the download methods.

Features by @J_A_V_A:
- Add full secret chat support to the SimpleEventHandler with the new SecretMessage update & filters & fields!
- Add secret chat support to DialogSetTTL/DialogScreenshotTaken/DialogHistoryCleared/SecretUserTyping updates.
- Add DialogDeleteMessages, DialogReadMessages updates for secret chats (support will be extended to normal chats soon).

Features by @madbyte:
- Add support for channel stories in the SimpleEventHandler API
- Add enableAutoTranslate, disableAutoTranslate, replyOrEdit bound methods to all message classes.
- Add enableProtection, disableProtection bound methods to channel/supergroup message classes.
- Add enableSlowMode, disableSlowMode, enableJoinToComment, disableJoinToComment bound methods to supergroup message classes.
- Add DialogSetChatWallPaper/DialogBotAllowed/ChatUserTyping updates and BotApp/Wallpaper/WallpaperSettings classes.
- Add IsEdited/IsNotEdited message filters
- Multiple bugfixes in the SimpleEventHandler API!


Features by @YinYang:
- Add support for an onStop method in the event handler


P.S. Here's the usual http://t.me/madelineproto?boost plug :D ❤️❤️❤️

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