Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

withvidit/node-telegrambot

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot

A sample telegram bot using the new API (webhooks) that does everything. I know it is a mess, but it lets you learn how the API works

Installation

git clone https://github.com/asdofindia/node-telegrambot
cd node-telegrambot
npm install

Running

  • Get your bot token from @botfather. This will be TG_TOKEN
  • Get a domain with SSL (Telegram webhooks won't work on localhost, local IP addresses, or self signed certificates). This domain name (without https, or trailing slash) will be APP_DNS (eg: telegrambot.example.com )
  • export TG_TOKEN="123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11:" APP_DNS="telegrambot.example.com" && node server.js

IRC integration

One of the features of the bot is its irc integration. Set the corresponding values in config.js to log all messages from a telegram channel into an IRC channel and vice versa. Be careful not to use popular channels and get banned.

Problems

If you've problems, ask me in this group

About

Node app that uses telegram's bot api to work

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 79.4%
  • HTML 20.6%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.