Daniil Gentili
399 subscribers
1 video
19 links
Senior software artisan with a vast experience working on complex high-performance systems using Rust, Golang, C++, C, PHP.

This is my blog, where I share news about my projects and some personal thoughts.
Download Telegram
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.4.21)!

Features:
- Update to layer 210

Fixes:
- Drop all session-related database rows when logging out
- Fix an issue with postgres when creating the database

New Methods:
- payments.createStarGiftCollection
- payments.updateStarGiftCollection
- payments.reorderStarGiftCollections
- payments.deleteStarGiftCollection
- payments.getStarGiftCollections

Changed Methods:
- Added collection_id param to payments.getSavedStarGifts

New Constructors:
- starsRating
- starGiftCollection
- payments.starGiftCollectionsNotModified
- payments.starGiftCollections

Changed Constructors:
- Added stars_rating param to userFull
- Added todo_item_id param to messageReplyHeader
- Added todo_item_id param to inputReplyToMessage
- Added require_premium param to starGift
- Added limited_per_user param to starGift
- Added per_user_total param to starGift
- Added per_user_remains param to starGift
- Added require_premium param to starGiftUnique
- Added collection_id param to savedStarGift
โค8๐Ÿซก3
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.5.4)!

The server-side issues with newer layers that forced a layer downgrade were fixed, so this release bumps the layer to the newest 211.

This release also re-enables JIT in the docker image, as a problematic commit was reverted in php-src.

New Methods:
- channels.checkSearchPostsFlood
- stories.createAlbum
- stories.updateAlbum
- stories.reorderAlbums
- stories.deleteAlbum
- stories.getAlbums
- stories.getAlbumStories

Changed Methods:
- Added query param to channels.searchPosts
- Added allow_paid_stars param to channels.searchPosts
- Added resell_amount param to payments.updateStarGiftPrice
- Removed resell_stars param from payments.updateStarGiftPrice
- Added albums param to stories.sendStory

New Constructors:
- webPageAttributeStarGiftCollection
- storyAlbum
- stories.albumsNotModified
- stories.albums
- searchPostsFlood

Changed Constructors:
- Added resale_amount param to messageActionStarGiftUnique
- Removed resale_stars param from messageActionStarGiftUnique
- Added stars_my_pending_rating param to userFull
- Added stars_my_pending_rating_date param to userFull
- Added search_flood param to messages.messagesSlice
- Added ton param to inputInvoiceStarGiftResale
- Added albums param to storyItem
- Added resale_ton_only param to starGiftUnique
- Added resell_amount param to starGiftUnique
- Removed resell_stars param from starGiftUnique
๐Ÿ‘1
Happy birthday to Telegram ๐ŸŽ‰

Loving this platform and community more than ever, can't wait to see what's next!
โค10๐Ÿ‘3
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.5.5)!

Fixes:
- Test a fix for a minor issue related to channel bans
- Bump layer 211

Docs:
- Autodetect business-capable methods
- Add some RPC errors
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.5.6)!

Fixes:
- Fixes to the CDN handshake
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.5.7)!

This release updates to layer 214 and also adds some extra logging through report peers for a possible persisting server-side bug (make sure to specify a report peer, and please report new schema-related errors received through the report peer to the MadelineProto chat at @danog_community).

New Methods:
- account.setMainProfileTab
- account.saveMusic
- account.getSavedMusicIds
- account.getUniqueGiftChatThemes
- users.getSavedMusic
- users.getSavedMusicByID
- channels.setMainProfileTab
- payments.getUniqueStarGiftValueInfo
- payments.checkCanSendGift

Changed Methods:
- Added theme param to messages.setChatTheme
- Removed emoticon param from messages.setChatTheme
- Added exclude_upgradable param to payments.getSavedStarGifts
- Added exclude_unupgradable param to payments.getSavedStarGifts
- Removed exclude_limited param from payments.getSavedStarGifts

New Constructors:
- chatTheme
- chatThemeUniqueGift
- account.chatThemesNotModified
- account.chatThemes
- inputInvoiceStarGiftPrepaidUpgrade
- payments.uniqueStarGiftValueInfo
- profileTabPosts
- profileTabGifts
- profileTabMedia
- profileTabFiles
- profileTabMusic
- profileTabVoice
- profileTabLinks
- profileTabGifs
- users.savedMusicNotModified
- users.savedMusic
- account.savedMusicIdsNotModified
- account.savedMusicIds
- payments.checkCanSendGiftResultOk
- payments.checkCanSendGiftResultFail
- inputChatThemeEmpty
- inputChatTheme
- inputChatThemeUniqueGift

Changed Constructors:
- Added main_tab param to channelFull
- Added theme param to messageActionSetChatTheme
- Removed emoticon param from messageActionSetChatTheme
- Added prepaid_upgrade param to messageActionStarGift
- Added upgrade_separate param to messageActionStarGift
- Added prepaid_upgrade_hash param to messageActionStarGift
- Added gift_msg_id param to messageActionStarGift
- Added prepaid_upgrade param to messageActionStarGiftUnique
- Added support_email_address param to auth.sentCodePaymentRequired
- Added support_email_subject param to auth.sentCodePaymentRequired
- Added theme param to userFull
- Added main_tab param to userFull
- Added saved_music param to userFull
- Removed theme_emoticon param from userFull
- Added spend_purpose_peer param to inputStorePaymentStarsTopup
- Added stargift_prepaid_upgrade param to starsTransaction
- Added locked_until_date param to starGift
- Added theme_available param to starGiftUnique
- Added gift_id param to starGiftUnique
- Added value_amount param to starGiftUnique
- Added value_currency param to starGiftUnique
- Added theme_peer param to starGiftUnique
- Added chats param to payments.uniqueStarGift
- Added chats param to messages.webPagePreview
- Added upgrade_separate param to savedStarGift
- Added prepaid_upgrade_hash param to savedStarGift
2๐Ÿ”ฅ3โค2๐Ÿคก1
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.5.8)!

This release fixes messages.sendPaidReaction.
๐Ÿ”ฅ2
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.6.0)!

Features:
- Add new uploadDocument, uploadPhoto, uploadAudio, uploadDocumentPhoto, uploadGif, uploadPhoto, uploadSticker, uploadVideo, uploadVoice methods as more powerful versions of messages.uploadMedia, to upload media without actually sending it to any chat, with all the same automatic features offered by their send* variants.


Fixes:
- Fix channel is already closed errors after triggering an IPC server restart()
- Fix passing Messages to methods accepting inputDocument/inputPhoto constructors
- Allow passing a string to textWithEntities
- Small updates fix
- Transform the linked_monoforum_id returned by getInfo to a bot API ID
50๐Ÿ’‹4โค1๐Ÿ”ฅ1
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.6.1)!

Features:
- Upgrade to layer 218

Fixes:
- Improve error message for handlers without any param
- Fix misc deprecations

New Methods:
- auth.checkPaidAuth
- users.suggestBirthday
- contacts.updateContactNote
- messages.getForumTopics
- messages.getForumTopicsByID
- messages.editForumTopic
- messages.updatePinnedForumTopic
- messages.reorderPinnedForumTopics
- messages.createForumTopic
- messages.deleteTopicHistory
- payments.getStarGiftAuctionState
- payments.getStarGiftAuctionAcquiredGifts
- payments.getStarGiftActiveAuctions
- phone.sendGroupCallMessage
- phone.sendGroupCallEncryptedMessage
- phone.deleteGroupCallMessages
- phone.deleteGroupCallParticipantMessages
- phone.getGroupCallStars
- phone.saveDefaultSendAs
- stories.startLive

Changed Methods:
- Removed background_emoji_id param from account.updateColor
- Added note param to contacts.addContact
- Added schedule_repeat_period param to messages.sendMessage
- Added schedule_repeat_period param to messages.sendMedia
- Added schedule_repeat_period param to messages.forwardMessages
- Added schedule_repeat_period param to messages.editMessage
- Added for_live_stories param to channels.getSendAs
- Added peer_color_available param to payments.getSavedStarGifts
- Added exclude_hosted param to payments.getSavedStarGifts
- Added messages_enabled param to phone.toggleGroupCallSettings
- Added send_paid_messages_stars param to phone.toggleGroupCallSettings
- Added live_story param to phone.getGroupCallStreamRtmpUrl

Deleted Methods:
- channels.createForumTopic
- channels.getForumTopics
- channels.getForumTopicsByID
- channels.editForumTopic
- channels.updatePinnedForumTopic
- channels.deleteTopicHistory
- channels.reorderPinnedForumTopics

New Constructors:
- messageMediaVideoStream
- messageActionSuggestBirthday
- updateGroupCallMessage
- updateGroupCallEncryptedMessage
- updatePinnedForumTopic
- updatePinnedForumTopics
- updateDeleteGroupCallMessages
- updateStarGiftAuctionState
- updateStarGiftAuctionUserState
- sendMessageTextDraftAction
- inputPrivacyKeySavedMusic
- privacyKeySavedMusic
- webPageAttributeStarGiftAuction
- inputInvoicePremiumAuthCode
- inputInvoiceStarGiftDropOriginalDetails
- inputInvoiceStarGiftAuctionBid
- peerColorCollectible
- inputPeerColorCollectible
- starGiftUpgradePrice
- groupCallMessage
- groupCallDonor
- phone.groupCallStars
- recentStory
- auctionBidLevel
- starGiftAuctionStateNotModified
- starGiftAuctionState
- starGiftAuctionStateFinished
- starGiftAuctionUserState
- payments.starGiftAuctionState
- starGiftAuctionAcquiredGift
- payments.starGiftAuctionAcquiredGifts
- starGiftActiveAuctionState
- payments.starGiftActiveAuctionsNotModified
- payments.starGiftActiveAuctions
- inputStarGiftAuction
- inputStarGiftAuctionSlug
โค1๐Ÿ‘1
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
Changed Constructors:
- Added note param to inputPhoneContact
- Added bot_forum_view param to user
- Added schedule_repeat_period param to message
- Added days param to messageActionGiftPremium
- Removed months param from messageActionGiftPremium
- Added title_missing param to messageActionTopicCreate
- Added days param to messageActionGiftCode
- Removed months param from messageActionGiftCode
- Added auction_acquired param to messageActionStarGift
- Added to_id param to messageActionStarGift
- Added assigned param to messageActionStarGiftUnique
- Added drop_original_details_stars param to messageActionStarGiftUnique
- Added currency param to auth.sentCodePaymentRequired
- Added amount param to auth.sentCodePaymentRequired
- Added note param to userFull
- Added topics param to messages.messages
- Added topics param to messages.messagesSlice
- Added top_msg_id param to updateUserTyping
- Added top_msg_id param to updateReadHistoryInbox
- Added live_story param to updateGroupCall
- Added peer param to updateGroupCall
- Removed chat_id param from updateGroupCall
- Added messages_enabled param to groupCall
- Added can_change_messages_enabled param to groupCall
- Added min param to groupCall
- Added send_paid_messages_stars param to groupCall
- Added default_send_as param to groupCall
- Added paid_stars_total param to groupCallParticipant
- Added title_missing param to forumTopic
- Added peer param to forumTopic
- Added live param to storyItemSkipped
- Added days param to payments.checkedGiftCode
- Removed months param from payments.checkedGiftCode
- Added stargift_drop_original_details param to starsTransaction
- Added phonegroup_message param to starsTransaction
- Added stargift_auction_bid param to starsTransaction
- Added peer_color_available param to starGift
- Added auction param to starGift
- Added auction_slug param to starGift
- Added gifts_per_round param to starGift
- Added peer_color param to starGiftUnique
- Added host_id param to starGiftUnique
- Added prices param to payments.starGiftUpgradePreview
- Added next_prices param to payments.starGiftUpgradePreview
- Added drop_original_details_stars param to savedStarGift
- Added disallow_stargifts_from_channels param to disallowedGiftsSettings

Deleted Constructors:
- updateChannelPinnedTopic
- updateChannelPinnedTopics
โค2๐Ÿ‘2๐Ÿ’ฉ1
Merry Christmas everyone!

๐ŸŽ„๐ŸŽ‰โค๏ธ
Please open Telegram to view this post
VIEW IN TELEGRAM
โค20๐Ÿ”ฅ3๐Ÿค—2
Happy new year, let this be a year of peace and joy!
โค18๐Ÿ‘4
Forwarded from MadelineProto | Official Channel (Daniil Gentili)
MadelineProto was updated (8.6.3)!

Features:
- Update to layer 222 (the server is currently returning unreleased Message constructors for layer 223 and above, so delaying those for now)

Fixes:
- DC fix

New Methods:
- messages.getEmojiGameInfo
- messages.summarizeText
- channels.getFutureCreatorAfterLeave
- payments.getCraftStarGifts
- payments.craftStarGift

Changed Methods:
- Added share_phone_number param to messages.acceptUrlAuth
- Added for_craft param to payments.getResaleStarGifts

New Constructors:
- inputMediaStakeDice
- messageActionNewCreatorPending
- messageActionChangeCreator
- updateEmojiGameInfo
- updateStarGiftCraftFail
- inputPasskeyCredentialFirebasePNV
- messages.emojiGameOutcome
- messages.emojiGameUnavailable
- messages.emojiGameDiceInfo
- starGiftAttributeRarity
- starGiftAttributeRarityUncommon
- starGiftAttributeRarityRare
- starGiftAttributeRarityEpic
- starGiftAttributeRarityLegendary
- keyboardButtonStyle

Changed Constructors:
- Added bot_forum_can_manage_topics param to user
- Added monoforum param to channelForbidden
- Added summary_from_language param to message
- Added game_outcome param to messageMediaDice
- Added craft param to messageActionStarGiftUnique
- Added can_craft_at param to messageActionStarGiftUnique
- Added style param to keyboardButton
- Added style param to keyboardButtonUrl
- Added style param to keyboardButtonCallback
- Added style param to keyboardButtonRequestPhone
- Added style param to keyboardButtonRequestGeoLocation
- Added style param to keyboardButtonSwitchInline
- Added style param to keyboardButtonGame
- Added style param to keyboardButtonBuy
- Added style param to keyboardButtonUrlAuth
- Added style param to inputKeyboardButtonUrlAuth
- Added style param to keyboardButtonRequestPoll
- Added style param to inputKeyboardButtonUserProfile
- Added style param to keyboardButtonUserProfile
- Added style param to keyboardButtonWebView
- Added style param to keyboardButtonSimpleWebView
- Added style param to keyboardButtonRequestPeer
- Added style param to inputKeyboardButtonRequestPeer
- Added style param to keyboardButtonCopy
- Added request_phone_number param to urlAuthResultRequest
- Added browser param to urlAuthResultRequest
- Added platform param to urlAuthResultRequest
- Added ip param to urlAuthResultRequest
- Added region param to urlAuthResultRequest
- Added burned param to starGiftUnique
- Added crafted param to starGiftUnique
- Added craft_chance_permille param to starGiftUnique
- Added crafted param to starGiftAttributeModel
- Added rarity param to starGiftAttributeModel
- Removed rarity_permille param from starGiftAttributeModel
- Added rarity param to starGiftAttributePattern
- Removed rarity_permille param from starGiftAttributePattern
- Added rarity param to starGiftAttributeBackdrop
- Removed rarity_permille param from starGiftAttributeBackdrop
- Added can_craft_at param to savedStarGift
โค1๐Ÿ‘1๐Ÿ™1
Previewing my upcoming php-community RFC: https://github.com/danog/php-community-rfc

Feel free to submit feedback in the comments, it will be posted to the PHP internals mailing list either this weekend or next week.
๐Ÿ”ฅ4๐Ÿซก3
Daniil Gentili
Let's fight for the future of async PHP, upvote my take on the PHP Async proposal: https://github.com/true-async/php-true-async-rfc/discussions/8#discussioncomment-15074303
Btw, I'm now part of the True Async committee!

I decided to not present the RFC as linked to true async, to explicitly prevent an interpretation where it is something that will allow us to "sneak in" True Async into PHP.

True Async is one of, but not the only nor the main reason why I created this RFC.

I truly believe that PHP could really benefit from a more agile RFC process, that can transform it from just a decent and fast language I and so many others love, to an amazing, blazing fast and actually modern and ergonomic language: I believe PHP truly deserves this.
๐Ÿ”ฅ7๐Ÿซก2๐Ÿ•Š1
Forwarded from Pavel Durov (Pavel Durov)
โš ๏ธ Indian telecom Reliance is sabotaging access to Telegram for millions of users OUTSIDE India (including the UAE) via a rogue method called BGP hijacking.

๐Ÿงจ The sabotage seems intentional, as Reliance has ignored multiple reports.

๐Ÿ˜ž This may be part of a competitive war, as Reliance is partially owned by Meta โ€” the company behind WhatsApp.

๐ŸŒ Network operators are advised to reject unauthorized BGP announcements from Reliance (AS18101) to prevent route hijacks and ensure stable Internet access for their users.

๐Ÿค” Such abuse of global Internet routing is suspicous. I wouldnโ€™t be surprised if Reliance/WhatsApp were also behind the recent lobbying effort to ban Telegram in India.
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘1
MadelineProto may also be affected if your upstreams aren't filtering invalid routes via RPKI, i.e. if connection fails and https://rpkitest.nlnetlabs.net/ isn't passing for you, ask your upstreams to enable RPKI validation :)
๐Ÿ‘2