Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

A bot that help you easily request money from friends.

License

Notifications You must be signed in to change notification settings

muety/telegram-paypalme-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-paypalme-bot

This is a bot for the Telegram messaging app using their bot platform. The code is open-source and consequently anybody could set up an own instance of the bot. To learn how to do so, see this section. The official hosted version is available as @PayPalMeBot. This bot uses the telegram-node-bot framework.

What does it do?

This bot helps people requesting money from friends more easily by generating and sending PayPal.me links. It works with inline mode from any chat, assumed both partners have a PayPal account.

How to host it myself?

Prerequisites

In order to host this bot on your own, you need a few things.

  • Server to run the bot on (since the bot uses the long polling method to get updates instead of the web-hook one, you don't need HTTPS certificates or ports to be exposed)
  • Node.js (preferbly at the latest version)
  • A bot token, which you get from registering a new bot to the @BotFather

Configuration

To configure your bot, clone this repository and then edit constants.js file.

  • _TOKEN: the token you got from the BotFather
  • BOT_NAME: the bot's name, e.g. "PayPalMeBot" in my case
  • FILE_PATH_STORAGE: the path of a json file where to persist data to, e.g. ./data/store.json IMPORTANT: Don't forget to create that file, doing (e.g.) touch ./data/store.json

Run

$ npm start

License

MIT @ Ferdinand Mütsch

About

A bot that help you easily request money from friends.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published