и посмотреть медиа
Daniil Gentili - Новости проектов
и посмотреть медиа
Официальный канал с новостями проектов Daniil Gentili. Следите за разработками и обновлениями.
Официальный канал с новостями проектов Daniil Gentili. Следите за разработками и обновлениями.
Канал Daniil Gentili посвящен новостям его проектов. Здесь вы найдете официальную информацию о разработках, обновлениях и связанных материалах. Полезно для интересующихся IT и программированием в Telegram.
You can subscribe to my stories and add @danogentili as a contact to receive early updates about my projects ❤️ Ссылка скрыта
Открыть канал и посмотреть медиаI fell in love with Telegram Stories, it's basically like having a personal blog like this but it's also immediately accessible by clicking on the user's profile, and you can directly interact with the person that posted the story (and the poster can do the same too, found some really cute kittens in the stories of the people that viewed mine! :333) Really happy with the social direction of Telegram, it feels more alive and fun than ever!
Открыть канал и посмотреть медиаIntroducing MadelineProto's biggest update yet, 8.0.0-beta100! This version introduces plugins », bound methods », filters », a built-in cron system », IPC support for the event handler » and automatic static analysis for event handler code ». See the following post for examples! Other features: - Thanks to the many translation contributors @ Ссылка скрыта MadelineProto is now localized in Hebrew, Persian, Kurdish, Uzbek, Russian, French and Italian! - Added simplified sendMessage, sendDocument, sendPhoto methods that return abstract Message objects with simplified properties and bound methods! - You can now use Tools::callFork to fork a new green thread! - You can now automatically pin messages broadcasted using broadcastMessages, broadcastForwardMessages by using the new pin: true parameter! - You can now use sendMessageToAdmins to send messages to the bot's admin (the peers returned by getReportPeers). - Added wrapUpdate, wrapMessage, wrapMedia methods to wrap low-level MTProto updates into an abstracted Message object with bound methods! - The waveform attribute of Voice objects is now automatically encoded and decoded to an array of 100 integer values! - Added a custom PeerNotInDbException class for "This peer is not present in the internal peer database" errors - Added a label property to the Button class, directly indicating the button label (instead of manually fetching it as an array key). - Added isForum method to check whether a given supergroup is a forum - Added an entitiesToHtml method to convert a message and a set of Telegram entities to an HTML string! - You can now use reportMemoryProfile() to generate and send a pprof memory profile to all report peers to debug the causes of high memory usage. - Added support for pay, loginurl, webapp and tg://user?id= buttons in bot API syntax! - Added a getAdminIds function that returns the IDs of the admin of the bot (equal to the peers returned by getReportPeers in the event handler). - Added a new ParseMode enum! - Added support for HTML lists in parseMode! - Fixed parsing of markdown code blocks! Breaking changes: - Switched to a custom markdown parser with bot API MarkdownV2 syntax, which differs from the previous Markdown syntax supported by parsedown. - Markdown text can't contain HTML anymore. Fixes: - Fixed file uploads with ext-uv! - Fixed file re-uploads! - Improve background broadcasting with the broadcast API using a pre-defined list of whitelist IDs! - Fixed a bug that caused updates to get paused if an exception is thrown during onStart. - Broadcast IDs are now unique across multiple broadcasts, even if previous broadcasts already completed their ID will never be re-used. - Now uploadMedia, sendMedia and upload can upload files from string buffers created using ReadableBuffer. - Reduced memory usage during flood waits by tweaking config defaults. - Reduced memory usage by clearing the min database automatically as needed. - Automatically try caching all dialogs if a peer not found error is about to be thrown. - Fixed some issues with pure phar installs. - Fixed splitting of HTML and markdown messages - Fixed formatting of multiline markdown codeblocks - And many other performance improvements and bugfixes!
Открыть канал и посмотреть медиаHere's a more detailed explanation of the most important new features of MadelineProto 8.0.0-beta100! - Native plugin system To create a plugin, simply create an event handler that extends PluginEventHandler. For example, create a plugins/Danogentili/PingPlugin.php file:
Открыть канал и посмотреть медиаMadelineProto was updated (8.0.0-beta102)! After introducing plugins », bound methods », filters », a built-in cron system », IPC support for the event handler » and automatic static analysis for event handler code » in beta100, beta101 brings some bugfixes and the getDownloadLink function! getDownloadLink can be used to fetch a direct download link for any file up to 4GB, even using a bot API file ID! Other features: - Added an openFileAppendOnly function, that can be used to asynchronously open a file in append-only mode! Fixes: - Improved the markdownEscape function! - Translated even more MadelineProto UI elements! - Improve the static analyzer. - Fixed some bugs in simple filters. - Relax markdown parser. Here's an example on how to use the new getDownloadLink() function:
Открыть канал и посмотреть медиаNote: to get a download link for bot API file IDs as a bot (files up to 4gb), the file name, size and mime type should also be provided:
Открыть канал и посмотреть медиаMadelineProto was updated (8.0.0-beta107)! Features: - Add getPeriodicLoops function to get all periodic loops created by Cron attribtues - Add isReply bound method - Add exception logging in the browser Fixes: - Relax dl.php verification for getDownloadLink - Made more fixes to photo bot API conversion - Fix functions.php plugin inclusion Also here's a more detailed list of the properties and bound methods of the new simple event handler API: - $message->message: string Content of the message - $message->fwdInfo: ?ForwardedInfo Info about a forwarded message - $message->command: ?string Bot command (if present) - $message->commandType: ?CommandType Bot command type (if present) - $message->commandArgs: list Bot command arguments (if present) - $message->protected: bool Whether this message is protected - $message->matches: list Regex matches, if a filter regex is present - $message->fromScheduled: bool Whether this message is a sent scheduled message - $message->viaBotId: ?int If the message was generated by an inline query, ID of the bot that generated it - $message->editDate: ?int Last edit date of the message - $message->keyboard: InlineKeyboard|ReplyKeyboard|null Inline or reply keyboard. - $message->imported: bool Whether this message was imported from a foreign chat service - $message->psaType: ?string For Public Service Announcement messages, the PSA type - $message->nextSent: ?self @readonly For sent messages, contains the next message in the chain if the original message had to be split. - $message->id: int Message ID - $message->out: bool Whether the message is outgoing - $message->chatId: int ID of the chat where the message was sent - $message->senderId: int ID of the sender of the message - $message->replyToMsgId: ?int ID of the message to which this message is replying - $message->date: int When was the message sent - $message->topicId: ?int ID of the forum topic where the message was sent - $message->threadId: ?int ID of the message thread where the message was sent - $message->replyToScheduled: bool Whether this is a reply to a scheduled message - $message->mentioned: bool Whether we were mentioned in this message - $message->silent: bool Whether this message was sent without any notification (silently) - $message->ttlPeriod: ?int Time-to-live of the message - $message->media: Media|null Attached media. - $message->media->botApiFileId: Bot API file ID of media. - $message->media->botApiFileUniqueId: Bot API unique file ID of media. - $message->media->fileName, fileExt, creationDate, size, ...: see the full list of properties by clicking on the documentation for all classes in the \danog\MadelineProto\EventHandler\Media namespace! Methods: - $message->getHTML(bool $allowTelegramTags = false): string: Get an HTML version of the message. $allowTelegramTags specifies whether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on… - $message->getReply(): ?self: Get replied-to message. May return null if the replied-to message was deleted. - $message->delete(bool $revoke = true): void: Delete the message. $revoke is true by default, if false it deletes the message on just one side of the chat. - $message->reply(string $message, ParseMode $parseMode, ...): \danog\MadelineProto\EventHandler\Message: Reply to the message, see the documentation for more info on the parameters! Also, you can now more easily press inline buttons using the new simple keyboard API: - $message->keyboard->press(string $label, bool $waitForResult): Presses the first keyboard button with the specified label. - $message->keyboard->pressByCoordinates(int $row, int $column, bool $waitForResult): Presses button at the specified keyboard coordinates. In both cases, if $waitForResult is true, waits for a result from the bot before returning.
Открыть канал и посмотреть медиаMadelineProto supports Telegram Stories in 8.0.0-beta113! New Methods: - users.getStoriesMaxIDs - account.invalidateSignInCodes - contacts.editCloseFriends - contacts.toggleStoriesHidden - channels.clickSponsoredMessage - stories.sendStory - stories.editStory - stories.deleteStories - stories.togglePinned - stories.getAllStories - stories.getUserStories - stories.getPinnedStories - stories.getStoriesArchive - stories.getStoriesByID - stories.toggleAllStoriesHidden - stories.getAllReadUserStories - stories.readStories - stories.incrementStoryViews - stories.getStoryViewsList - stories.getStoriesViews - stories.exportStoryLink - stories.report New Constructors: - inputMediaStory - messageMediaStory - updateStory - updateReadStories - updateStoryID - inputPrivacyKeyAbout - privacyKeyAbout - inputPrivacyValueAllowCloseFriends - privacyValueAllowCloseFriends - webPageAttributeStory - messageReplyStoryHeader - messagePeerVote - messagePeerVoteInputOption - messagePeerVoteMultiple - sponsoredWebPage - storyViews - storyItemDeleted - storyItemSkipped - storyItem - userStories - stories.allStoriesNotModified - stories.allStories - stories.stories - stories.userStories - storyView - stories.storyViewsList - stories.storyViews - inputReplyToMessage - inputReplyToStory - exportedStoryLink Changed Constructors: Added close_friend param to user Added stories_hidden param to user Added stories_unavailable param to user Added stories_max_id param to user Added alt_document param to messageMediaDocument Added stories_muted param to inputPeerNotifySettings Added stories_hide_sender param to inputPeerNotifySettings Added stories_sound param to inputPeerNotifySettings Added stories_muted param to peerNotifySettings Added stories_hide_sender param to peerNotifySettings Added stories_ios_sound param to peerNotifySettings Added stories_android_sound param to peerNotifySettings Added stories_other_sound param to peerNotifySettings Added stories_pinned_available param to userFull Added stories param to userFull Added peer param to updateMessagePollVote Removed user_id param from updateMessagePollVote Added nosound param to documentAttributeVideo Added preload_prefix_size param to documentAttributeVideo Added stories_preload param to autoDownloadSettings Added small_queue_active_operations_max param to autoDownloadSettings Added large_queue_active_operations_max param to autoDownloadSettings Added chats param to messages.votesList Added keep_archived_unmuted param to globalPrivacySettings Added keep_archived_folders param to globalPrivacySettings Added webpage param to sponsoredMessage Added my param to messagePeerReaction Click here to start using Telegram Stories in MadelineProto!
Открыть канал и посмотреть медиаRV128I is particularly interesting, as it allows for a 128-bit address space. The spec predicts that we'll have supercomputers with more than 16 exabytes of RAM by 2030, let's see if that prediction comes true ;)
Открыть канал и посмотреть медиаТолько зарегистрированные пользователи могут делиться своим мнением.
Станьте первым, кто поделится своим впечатлением об этом ресурсе!