Skip to content

Commit

Permalink
fix: implement L1&L2 twins for business messages
Browse files Browse the repository at this point in the history
  • Loading branch information
KnorpelSenf committed Apr 1, 2024
1 parent d7660e9 commit 07530d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,8 @@ type L1Equivalents = {
edited_message: "from" | "edit_date";
channel_post: "sender_chat";
edited_channel_post: "sender_chat" | "edit_date";
business_message: "from";
edited_business_message: "from" | "edit_date";
};

// yields twins based on given L1 and L2 properties
Expand All @@ -704,6 +706,8 @@ type L2Equivalents = {
edited_message: MessageEquivalents;
channel_post: MessageEquivalents;
edited_channel_post: MessageEquivalents;
business_message: MessageEquivalents;
edited_business_message: MessageEquivalents;
};
type MessageEquivalents = {
animation: "document";
Expand Down

0 comments on commit 07530d2

Please sign in to comment.