Skip to content

Commit

Permalink
fix(route): telegram parameters showReplyTo and showViaBot (DIYgod#14744
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gosxrgxx authored Mar 11, 2024
1 parent c265879 commit 430c0f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/telegram/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ async function handler(ctx) {
if (routeParams && routeParams.search(/(^|&)(show(LinkPreview|ViaBot|ReplyTo|FwdFrom(Author)?|InlineButtons|MediaTag(InTitle|AsEmoji))|include(Fwd|Reply|(Service|Unsupported)Msg)|searchQuery)=/) !== -1) {
routeParams = querystring.parse(ctx.req.param('routeParams'));
showLinkPreview = !!fallback(undefined, queryToBoolean(routeParams.showLinkPreview), showLinkPreview);
showViaBot = !!fallback(undefined, queryToBoolean(routeParams.showReplyTo), showViaBot);
showReplyTo = !!fallback(undefined, queryToBoolean(routeParams.showViaBot), showReplyTo);
showViaBot = !!fallback(undefined, queryToBoolean(routeParams.showViaBot), showViaBot);
showReplyTo = !!fallback(undefined, queryToBoolean(routeParams.showReplyTo), showReplyTo);
showFwdFrom = !!fallback(undefined, queryToBoolean(routeParams.showFwdFrom), showFwdFrom);
showFwdFromAuthor = !!fallback(undefined, queryToBoolean(routeParams.showFwdFromAuthor), showFwdFromAuthor);
showInlineButtons = !!fallback(undefined, queryToBoolean(routeParams.showInlineButtons), showInlineButtons);
Expand Down

0 comments on commit 430c0f3

Please sign in to comment.