net186-bot/src/handler/info.ts

10 lines
322 B
TypeScript
Raw Normal View History

2023-01-17 14:38:36 +00:00
import { Context } from "telegraf";
export default function handleInfo(adapter: adapter) {
return async (ctx: Context)=>{
const info = await adapter.info();
2023-01-17 17:51:54 +00:00
await ctx.reply(`${info.name} Bot from ${info.organization}.`, {
reply_to_message_id: ctx.message?.message_id
})
2023-01-17 14:38:36 +00:00
}
}