initial
This commit is contained in:
14
src/features/remove-keyboard.ts
Normal file
14
src/features/remove-keyboard.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { Composer, Context } from "grammy";
|
||||
|
||||
const composer = new Composer<Context>();
|
||||
const feature = composer.chatType(['group', 'supergroup']);
|
||||
|
||||
feature.command('remove', async (ctx) => {
|
||||
await ctx.reply('keboard removed', {
|
||||
reply_markup: { remove_keyboard: true }
|
||||
});
|
||||
|
||||
ctx.editMessageReplyMarkup();
|
||||
});
|
||||
|
||||
export { composer as removeKeyboardFeature };
|
Reference in New Issue
Block a user