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
: forButtonQuery
and subclasses, data associated with the callback button.$query->matches
: forButtonQuery
and subclasses, regex matches, if a filter regex is present.$query->chatId
: forChat*Query
classes, chat where the inline keyboard was sent.$query->messageId
: forChat*Query
classes, message ID.$query->gameShortName
: forGameQuery
and subclasses, short name of a Game to be returned, serves as the unique identifier for the game$query->inlineMessageId
: forInline*Query
and subclasses, inline message ID$query->editText(...)
: forChat*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
andeditText
methods toMessage
class - Add
FilterButtonQueryData
filter forButtonQuery
- Adapt
FilterFromAdmin
andFilterRegex
filter forButtonQuery
- Add
FromAdminOrOutgoing
simple filter - Add
markdownUrlEscape
method!
Fixes:
- Fix usage of
inputMediaPhotoExternal
andinputMediaDocumentExternal
withmessages.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!