Features:
- Add
CallbackQuery,ButtonQuery,ChatButtonQuery,InlineButtonQuery,GameQuery,ChatGameQuery,InlineGameQuerysimple 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: forButtonQueryand subclasses, data associated with the callback button.$query->matches: forButtonQueryand subclasses, regex matches, if a filter regex is present.$query->chatId: forChat*Queryclasses, chat where the inline keyboard was sent.$query->messageId: forChat*Queryclasses, message ID.$query->gameShortName: forGameQueryand subclasses, short name of a Game to be returned, serves as the unique identifier for the game$query->inlineMessageId: forInline*Queryand subclasses, inline message ID$query->editText(...): forChat*Queryclasses, edits the message's text.$query->answer(string $message, bool $alert = false, ?string $url = null, int $cacheTime = 5 * 60)- Answer an inline query
- Add
translateandeditTextmethods toMessageclass - Add
FilterButtonQueryDatafilter forButtonQuery - Adapt
FilterFromAdminandFilterRegexfilter forButtonQuery - Add
FromAdminOrOutgoingsimple filter - Add
markdownUrlEscapemethod!
Fixes:
- Fix usage of
inputMediaPhotoExternalandinputMediaDocumentExternalwithmessages.sendMultiMedia,messages.sendMedia,messages.uploadMedia - Fix
IsReplyToSelfsimple filter - Fix
CustomEmojimedia type - Fix bot API conversion for messages forwarded from private channels (+ other bot API conversion fixes)
- Fix pagination hash generation
- Improve
markdownCodeblockEscapemethod - Many more fixes!