• Docs
  • API
  • Help
  • GitHub

›Telegraf for Telegram

Telegraf for Telegram

  • Implementation

More

  • Updating User Information
  • Using Data Collections
Edit

How to Implement

Development

First of all, if you don't know how to build a Telegram Bot with Telegraf, you can check the Telegraf Documentation.

Also there are lots of samples about Microsoft Bot Framework on their Github Repository.

Implementation

Let's go step by step.

  1. You need to install our nodejs package to your project
npm install monosay
  1. You must create a bot on our platform

Create a Bot (If you already have a bot skip this step.)

  1. You must create a channel to connect with

If you already have your token just skip this step

  • Go to your bot
  • Click channels
  • Create Your Channel
  • Copy Your Token

Keep your token for next step.

  1. Import the library
const Telegraf = require('telegraf')
// ...
const monosay = require('monosay').usetelegraf("YOUR_MONOSAY_TELEGRAF_TOKEN");
// ...
  1. Initialize the library
// ...
const bot = new Telegraf(process.env.TELEGRAM_TOKEN)
// ...
// Initialize the library
monosay.init(bot);
// ...
  1. Start messaging with your bot.
  2. Go to your bot's dashboard
  3. You will start to see your Analytics, Conversations and more...

Congratulations! You have finally implemented {mono}say into your Bot.

Updating User Information →
Copyright © 2018 {mono}say is a product of MonoFor, Inc.
Documentation built with Docusaurus and Hosted on Github