All Projects → yagop → Node Telegram Bot Api

yagop / Node Telegram Bot Api

Licence: mit
Telegram Bot API for NodeJS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Telegram Bot Api

Urban Bot
🤖 The universal chatbot library based on React. Write once, launch Telegram, Facebook, Slack, ... every messenger with chatbots
Stars: ✭ 223 (-96.14%)
Mutual labels:  bot, chatbot, bot-framework, telegram
Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (-61.74%)
Mutual labels:  bot, chatbot, bot-framework, telegram
Mojo Webqq
【重要通知:WebQQ将在2019年1月1日停止服务,此项目目前已停止维护,感谢大家四年来的一路陪伴】使用Perl语言(不会没关系)编写的smartqq/webqq客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,755 (-69.65%)
Mutual labels:  api, bot, chatbot
Whatsapp Bot
BOT - WhatsApp Web in TypeScript
Stars: ✭ 170 (-97.06%)
Mutual labels:  api, bot, bot-framework
Node Vk Bot Api
🤖 VK bot framework for Node.js, based on Bots Long Poll API and Callback API.
Stars: ✭ 195 (-96.63%)
Mutual labels:  api, bot, bot-framework
Telebot.nim
Async client for Telegram Bot API in pure Nim [Bot API 5.1]
Stars: ✭ 93 (-98.39%)
Mutual labels:  api, bot, telegram
Ex gram
Telegram Bot API low level API and framework
Stars: ✭ 103 (-98.22%)
Mutual labels:  api, bot, telegram
Onebot
OneBot 标准:一个聊天机器人应用接口标准
Stars: ✭ 455 (-92.13%)
Mutual labels:  api, bot, chatbot
Vk To Telegram
Utility to forward posts from VK through callback API to telegram channel or chat
Stars: ✭ 24 (-99.58%)
Mutual labels:  api, bot, telegram
Slacker
Slack Bot Framework
Stars: ✭ 495 (-91.44%)
Mutual labels:  bot, chatbot, bot-framework
Bottender
⚡️ A framework for building conversational user interfaces.
Stars: ✭ 3,803 (-34.23%)
Mutual labels:  bot, chatbot, telegram
Stealth
An open source Ruby framework for text and voice chatbots. 🤖
Stars: ✭ 481 (-91.68%)
Mutual labels:  bot, chatbot, bot-framework
Go Tgbot
Golang telegram bot API wrapper, session-based router and middleware
Stars: ✭ 90 (-98.44%)
Mutual labels:  api, bot, telegram
Mojo Weixin
使用Perl语言(不会没关系)编写的个人账号微信/weixin/wechat客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,181 (-79.57%)
Mutual labels:  api, bot, chatbot
Novagram
An Object-Oriented PHP library for Telegram Bots
Stars: ✭ 112 (-98.06%)
Mutual labels:  api, bot, telegram
Telegram Test Api
Simple implimentation of telegram API which can be used for testing telegram bots
Stars: ✭ 42 (-99.27%)
Mutual labels:  api, bot, telegram
Mellow
Mellow can communicate with several APIs like Ombi, Sonarr, Radarr and Tautulli which are related to home streaming to use those services directly in your Discord client.
Stars: ✭ 193 (-96.66%)
Mutual labels:  api, bot, telegram
Poshbot
Powershell-based bot framework
Stars: ✭ 410 (-92.91%)
Mutual labels:  bot, chatbot, bot-framework
Python Telegram Bot
We have made you a wrapper you can't refuse
Stars: ✭ 17,209 (+197.63%)
Mutual labels:  bot, chatbot, telegram
Pymessager
Python API to develop chatbot on Facebook Messenger Platform
Stars: ✭ 580 (-89.97%)
Mutual labels:  api, bot, chatbot

Node.js Telegram Bot API

Node.js module to interact with the official Telegram Bot API.

Bot API npm package Build Status Coverage Status

https://telegram.me/node_telegram_bot_api https://telegram.me/ntbasupport https://telegram.me/Yago_Perez

Install

npm i node-telegram-bot-api

Usage

const TelegramBot = require('node-telegram-bot-api');

// replace the value below with the Telegram token you receive from @BotFather
const token = 'YOUR_TELEGRAM_BOT_TOKEN';

// Create a bot that uses 'polling' to fetch new updates
const bot = new TelegramBot(token, {polling: true});

// Matches "/echo [whatever]"
bot.onText(/\/echo (.+)/, (msg, match) => {
  // 'msg' is the received Message from Telegram
  // 'match' is the result of executing the regexp above on the text content
  // of the message

  const chatId = msg.chat.id;
  const resp = match[1]; // the captured "whatever"

  // send back the matched "whatever" to the chat
  bot.sendMessage(chatId, resp);
});

// Listen for any kind of message. There are different kinds of
// messages.
bot.on('message', (msg) => {
  const chatId = msg.chat.id;

  // send a message to the chat acknowledging receipt of their message
  bot.sendMessage(chatId, 'Received your message');
});

Documentation

Note: Development is done against the master branch. Code for the latest release resides on the release branch. Experimental features reside on the experimental branch.

Community

We thank all the developers in the Open-Source community who continuously take their time and effort in advancing this project. See our list of contributors.

We have a Telegram channel where we post updates on the Project. Head over and subscribe!

We also have a Telegram group to discuss issues related to this library.

Some things built using this library that might interest you:

  • tgfancy: A fancy, higher-level wrapper for Telegram Bot API
  • node-telegram-bot-api-middleware: Middleware for node-telegram-bot-api
  • teleirc: A simple Telegram IRC gateway
  • bot-brother: Node.js library to help you easily create telegram bots
  • redbot: A Node-RED plugin to create telegram bots visually
  • node-telegram-keyboard-wrapper: A wrapper to improve keyboards structures creation through a more easy-to-see way (supports Inline Keyboards, Reply Keyboard, Remove Keyboard and Force Reply)

License

The MIT License (MIT)

Copyright © 2019 Yago

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].