Skip to content

Commit

Permalink
Merge pull request #64 from harmony-one/hotfix-command-not-supported
Browse files Browse the repository at this point in the history
hotfix
  • Loading branch information
fegloff authored Aug 8, 2023
2 parents 3453657 + bd20b31 commit 1be16f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const onMessage = async (ctx: OnMessageContext) => {
if (schedule.isSupportedEvent(ctx)) {
return schedule.onEvent(ctx);
}
// onlfy for private chats
if (ctx.update.message.chat && ctx.chat.type === 'private') {
ctx.reply(
"Command not supported.\nWrite */menu* to learn available commands",
Expand Down

0 comments on commit 1be16f5

Please sign in to comment.