Fix welcome command
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import { chatAction } from "@grammyjs/auto-chat-action";
|
||||
import { Composer } from "grammy";
|
||||
import type { Context } from "#root/bot/context.js";
|
||||
import { isAdmin } from "#root/bot/filters/is-admin.js";
|
||||
// import { isAdmin } from "#root/bot/filters/is-admin.js";
|
||||
import { setCommandsHandler } from "#root/bot/handlers/commands/setcommands.js";
|
||||
import { logHandle } from "#root/bot/helpers/logging.js";
|
||||
|
||||
const composer = new Composer<Context>();
|
||||
|
||||
const feature = composer
|
||||
.chatType("private")
|
||||
.filter(ctx => isAdmin(ctx.config.botAdmins)(ctx));
|
||||
const feature = composer.chatType("private");
|
||||
// .filter(ctx => isAdmin(ctx.config.botAdmins)(ctx));
|
||||
|
||||
feature.command(
|
||||
"setcommands",
|
||||
|
||||
@@ -8,7 +8,7 @@ const feature = composer.chatType("private");
|
||||
|
||||
feature.command("start", logHandle("command-start"), ctx => {
|
||||
return ctx.reply(
|
||||
"Welcome! I am a bot created by Lucid for Lucid Creations media groups. I am designed to delete any Twitter/X links and reformatting services within groups. By default I only work with whitelisted group IDs. You can fork me from this link: https://github\\.com/lucid\\-creations\\-media/no\\-twitter\\-bot and deploy me for use in your own groups!",
|
||||
`Welcome\\! I am a bot created by Lucid for Lucid Creations media groups\\. I am designed to delete any Twitter/X links and reformatting services within groups\\. By default I only work with whitelisted group IDs\\. You can fork me from this link: https://github\\.com/lucid\\-creations\\-media/no\\-twitter\\-bot and deploy me for use in your own groups\\!`,
|
||||
{ parse_mode: "MarkdownV2" }
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user