Files
no-twitter-bot/src/bot/features/welcome.ts
Lucid Kobold 15dd54cebd Initial commit
2025-02-19 10:12:42 -05:00

14 lines
375 B
TypeScript

import type { Context } from '#root/bot/context.js'
import { logHandle } from '#root/bot/helpers/logging.js'
import { Composer } from 'grammy'
const composer = new Composer<Context>()
const feature = composer.chatType('private')
feature.command('start', logHandle('command-start'), (ctx) => {
return ctx.reply(ctx.t('welcome'))
})
export { composer as welcomeFeature }