Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support Bot API 7.2 #554

Merged
merged 7 commits into from
Apr 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: implement L1&L2 twins for business messages
  • Loading branch information
KnorpelSenf committed Apr 1, 2024
commit 07530d22c5989b96a1cbeff9a0b0c3aee7326ede
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
Loading