github danog/MadelineProto 8.0.0-beta129
MadelineProto 8 beta 129

latest releases: 8.3.5, 8.3.4, 8.3.3...
15 months ago

Features:

  • Add CallbackQuery, ButtonQuery, ChatButtonQuery, InlineButtonQuery, GameQuery, ChatGameQuery, InlineGameQuery simple update classes with many useful properties and methods:
    • $query->queryId: Query ID
    • $query->userId: ID of the user that pressed the button
    • $query->chatInstance: Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
    • $query->data: for ButtonQuery and subclasses, data associated with the callback button.
    • $query->matches: for ButtonQuery and subclasses, regex matches, if a filter regex is present.
    • $query->chatId: for Chat*Query classes, chat where the inline keyboard was sent.
    • $query->messageId: for Chat*Query classes, message ID.
    • $query->gameShortName: for GameQuery and subclasses, short name of a Game to be returned, serves as the unique identifier for the game
    • $query->inlineMessageId: for Inline*Query and subclasses, inline message ID
    • $query->editText(...): for Chat*Query classes, edits the message's text.
    • $query->answer(string $message, bool $alert = false, ?string $url = null, int $cacheTime = 5 * 60) - Answer an inline query
  • Add translate and editText methods to Message class
  • Add FilterButtonQueryData filter for ButtonQuery
  • Adapt FilterFromAdmin and FilterRegex filter for ButtonQuery
  • Add FromAdminOrOutgoing simple filter
  • Add markdownUrlEscape method!

Fixes:

  • Fix usage of inputMediaPhotoExternal and inputMediaDocumentExternal with messages.sendMultiMedia, messages.sendMedia, messages.uploadMedia
  • Fix IsReplyToSelf simple filter
  • Fix CustomEmoji media type
  • Fix bot API conversion for messages forwarded from private channels (+ other bot API conversion fixes)
  • Fix pagination hash generation
  • Improve markdownCodeblockEscape method
  • Many more fixes!

Don't miss a new MadelineProto release

NewReleases is sending notifications on new releases.