Search results
Users can interact with bots by sending them command messages in private or group chats. These accounts serve as an interface for code running somewhere on your server. Telegraf is a library that makes it simple for you to develop your own Telegram bots using JavaScript or TypeScript.
24 lis 2023 · Telegraf is a library to build your own Telegram Bot with the help of the official Telegram Bot API. You can develop in JavaScript or TypeScript. I personally used TypeScript for learning...
Users can interact with bots by sending them command messages in private or group chats. These accounts serve as an interface for code running somewhere on your server. Features
You must call bot.telegram.setWebhook for this to work. You should probably use Telegraf.createWebhook instead.
28 lut 2023 · You can achieve that by calling directly telegram api .setMyCommands: const { Telegraf } = require('telegraf'); const bot = new Telegraf(process.env.BOT_TOKEN); bot.telegram.setMyCommands([ { command: 'test', description: 'Test command', }, { command: 'greetings', description: 'Greetings command', } ]);
5 lis 2021 · In this tutorial, you built a Telegram chatbot that sends an image of an animal with a fact overlayed through a custom slash command. You created the command handlers for the bot through the telegraf module.
3 kwi 2024 · If you’re looking to create your own Telegram bot using Node.js, the Telegraf library offers a simple and powerful framework to get started. In this guide, we’ll walk through the steps to...