All Projects → mdibaiee → Node Telegram Api

mdibaiee / Node Telegram Api

Licence: mit
A simple API to create and control Telegram bots

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Telegram Api

Mypackbot
🤖 Your own unlimited pack of Telegram-stickers
Stars: ✭ 18 (-84.62%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Turibot
TuriBot is a simple way to communicate with Telegram APIs in PHP
Stars: ✭ 68 (-41.88%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Micro Bot
🤖 Zero-configuration Telegram bot runner
Stars: ✭ 173 (+47.86%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Groupbutler
This bot can help you in managing your group with rules, anti-flood, description, custom triggers, and much more!
Stars: ✭ 399 (+241.03%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Informer
A Telegram Mass Surveillance Bot in Python
Stars: ✭ 745 (+536.75%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Tgbot Cpp
C++ library for Telegram bot API
Stars: ✭ 439 (+275.21%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Telegram Bot Api
First Telegram Bot API node.js library
Stars: ✭ 205 (+75.21%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Java Telegram Bot Api
Telegram Bot API for Java
Stars: ✭ 819 (+600%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Novagram
An Object-Oriented PHP library for Telegram Bots
Stars: ✭ 112 (-4.27%)
Mutual labels:  telegram-api, bot, telegram-bot, telegram
Telegram Clonebot
Simple Bot to clone Google Drive Files (or Folders) to your Team Drive[or Normal Drive]. P.S This is not a Mirror Bot. Enjoy ✌🏻
Stars: ✭ 114 (-2.56%)
Mutual labels:  bot, telegram-bot, telegram
Bot Telegram
Exemplo de como criar um BOT para o melhor app de mensagens do mundo: Telegram.
Stars: ✭ 53 (-54.7%)
Mutual labels:  bot, telegram-bot, telegram
Telegram Bot Github
Allows to you receive GitHub notifications right in the Telegram
Stars: ✭ 103 (-11.97%)
Mutual labels:  bot, telegram-bot, telegram
Telepyth
Telegram notification with IPython magics.
Stars: ✭ 54 (-53.85%)
Mutual labels:  bot, telegram-bot, telegram
Nikoro
A plugin-based, all-in-one, Telegram Bot written in Node.js
Stars: ✭ 51 (-56.41%)
Mutual labels:  bot, telegram-bot, telegram
Pockebot
Read It Later for Telegram
Stars: ✭ 56 (-52.14%)
Mutual labels:  bot, telegram-bot, telegram
Marvin
The paranoid bot (framework)
Stars: ✭ 51 (-56.41%)
Mutual labels:  bot, telegram-bot, telegram
Moviemagnetbot
🤖 telegram bot for movies
Stars: ✭ 39 (-66.67%)
Mutual labels:  bot, telegram-bot, telegram
Telebot
The easy way to write Telegram bots in Node.js
Stars: ✭ 1,096 (+836.75%)
Mutual labels:  bot, telegram-bot, telegram
Drone Telegram
Drone plugin for sending Telegram notifications
Stars: ✭ 67 (-42.74%)
Mutual labels:  telegram-api, telegram-bot, telegram
Hackernewsbot
📰 Telegram bot that posts new hot stories from Hacker News to telegram channel
Stars: ✭ 103 (-11.97%)
Mutual labels:  bot, telegram-bot, telegram

Telegram Bots

Create and control Telegram bots easily using the new Telegram API.

npm install telegram-api

telegram-api is in beta, your feedback is appreciated, please fill an issue for any bugs you find or any suggestions you have.

If you are cloning this repository, remember to run npm install to install dependencies.

If you are looking for a real-life example of a bot written using this module, see mdibaiee/webdevrobot.

Documentation

Example

// ES6:
import Bot, { Message, File } from 'telegram-api';

// ES5:
var Bot = require('telegram-api').default;
var Message = require('telegram-api/types/Message');
var File = require('telegram-api/types/File');

var bot = new Bot({
  token: 'YOUR_TOKEN'
});

bot.start();

bot.get(/Hi|Hey|Hello|Yo/, function(message) {
  var answer = new Message().text('Hello, Sir').to(message.chat.id);

  bot.send(answer);
});

bot.command('start', function(message) {
  var welcome = new File().file('./some_photo.png').caption('Welcome').to(message.chat.id);

  bot.send(welcome);
});

// Arguments, see: https://github.com/mdibaiee/node-telegram-api/wiki/Commands
bot.command('weather <city> [date]', function(message) {
  console.log(message.args.city, message.args.date);
})

Todo

  • [x] Webhook support (not tested, see #4)
  • [x] Forward Type
  • [x] BulkMessage Type
  • [x] File Type
  • [ ] Sticker Type
  • [ ] Location Type
  • [ ] Contact Type
  • [ ] Allow remote control of bots (TCP maybe)
  • [ ] YOUR IDEAS! Fill an issue
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].