Skip to content

Telegram bot for web comics & misc content - made with the awesome Telegraf API

License

Notifications You must be signed in to change notification settings

abidhahmed/telegram-bot-with-telegraf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-bot-with-telegraf

Build Status js-standard-style

A Telegram Bot written with Telegraf's awesome API for sharing digital comics/misc content with your friends/groups.

Installation

You need Node.js (> 8) - install the dependencies via

$ npm install

Configuration

  1. Make sure you have a token from Telegram. To obtain one, talk to @BotFather on Telegram.
  2. Save your token inside config/config.js ~ telegramToken.
  3. Start the bot via npm start.
  4. To modify commands, look under bot.js.
  5. Logic for fetching comic is separated under lib/comic.js.
  6. Logic for fetching other random things is separated under lib/random.js

Features

  • Random comics from Cyanide&Happiness.
  • Random comics from XKCD.
  • Random comics from Dinocomics.
  • Random cats from The Cat API.
  • Random two-line jokes from The Oatmeal.
  • More coming soon!
Screenshot

Preview

Misc

Remember to checkout Telegraf documentation. http://telegraf.js.org/

License

MIT

About

Telegram bot for web comics & misc content - made with the awesome Telegraf API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published