Bots are special Telegram accounts designed to handle messages automatically. 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. You can see in every example is a Context instance. Telegraf creates one for each incoming update and passes it to your middleware. It contains the update, botInfo, and telegram for making arbitrary Bot API requests, as well as shorthand methods and getters. Telegraf is written in TypeScript and therefore ships with declaration files for the entire library. Moreover, it includes types for the complete Telegram API via the typegram package. While most types of Telegraf's API surface are self-explanatory, there's some notable things to keep in mind.

Features

  • Full Telegram Bot API 5.5 support
  • Excellent TypeScript typings
  • Lightweight
  • AWS/Firebase/Glitch/Heroku/Whatever ready
  • Compatible webhooks
  • Extensible

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow telegraf.js

telegraf.js Web Site

You Might Also Like
Desktop and Mobile Device Management Software Icon
Desktop and Mobile Device Management Software

It's a modern take on desktop management that can be scaled as per organizational needs.

Desktop Central is a unified endpoint management (UEM) solution that helps in managing servers, laptops, desktops, smartphones, and tablets from a central location.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of telegraf.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Frameworks, JavaScript Telegram Bots, JavaScript Bot Frameworks

Registered

2022-04-25