Skip to content

Commit

Permalink
fix: ctx.chat for callback queries
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Apr 2, 2024
1 parent 29de76d commit f591c57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,9 @@ interface Shortcuts<U extends Update> {
: [U["callback_query"]] extends [object]
? U["callback_query"]["message"]
: undefined;
chat: [Shortcuts<U>["msg"]] extends [object] ? Shortcuts<U>["msg"]["chat"]
chat: [U["callback_query"]] extends [object]
? NonNullable<U["callback_query"]["message"]>["chat"] | undefined
: [Shortcuts<U>["msg"]] extends [object] ? Shortcuts<U>["msg"]["chat"]
: [U["deleted_business_messages"]] extends [object]
? U["deleted_business_messages"]["chat"]
: [U["message_reaction"]] extends [object]
Expand Down

0 comments on commit f591c57

Please sign in to comment.