Skip to content
Alper Kürşat edited this page Feb 28, 2022 · 6 revisions

Botocrat animation

Quick Start

npm i @botocrat/core @botocrat/telegram @botocrat/poller --save
import Botocrat from "@botocrat/core"
import createClient from "@botocrat/telegram"
import poller from "@botocrat/poller"

const client = createClient({token: TELEGRAM_BOT_TOKEN})

const bot = new Botocrat()
  .get("message", (req, res) => 
    res.reply("Hello " + req.from.first_name))

poller(bot, client).poll()

Contents

Clone this wiki locally