Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @botpress/channel-telegram with all npm packages installed. Try it out:

require("botpress/package.json"); // botpress is a peer dependency. var channelTelegram = require("@botpress/channel-telegram")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@botpress/channel-telegram v10.51.10

Official Telegram connector for Botpress

botpress-telegram

Official Telegram connector for Botpress. This module has been built to accelerate and facilitate development of Telegram bots.

Contribution

Botpress Team would really appreciate to have some help from the community to work on this important module. By helping us, you will contribute to the core and by the way, you will become one of our Botpress Leaders!

Installation

npm install @botpress/channel-telegram

Get started

To setup connexion of your chatbot to Telegram, you need to fill the connexion settings directly in the module interface. In fact, you only need to follow this step and your bot will be active.

{{BOT ROOT DIR}}/config/channel-telegram.json

{
  "botToken": "451660170:AAHM2CD-Z8Kt3AwqcQLnaUgIk5bUJay3s0M"
}

You can also set the TELEGRAM_TOKEN environment variable

How to create an Telegram Bot Token

Video tutorial

Community

There's a Slack community where you are welcome to join us, ask any question and even help others.

Get an invite and join us now! 👉https://slack.botpress.io

License

botpress-telegram is licensed under AGPLv3.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free