Skip to content

Commit

Permalink
fix: /q@username
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Oct 31, 2024
1 parent ba861b8 commit 5707dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/controllers/QuotLyController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class {
};

private onTelegramMessage = async (message: Api.Message) => {
if (message.message !== '/q') return;
if (!['/q', `/q@${this.tgBot.me.username}`].includes(message.message)) return;
const pair = this.instance.forwardPairs.find(message.chat);
if (!pair) return;
if (!message.replyTo) {
Expand Down

0 comments on commit 5707dbe

Please sign in to comment.