/Telegram-Bot

Bitcoin Token Telegram Bot

Primary LanguagePHP

Bitcoin Token Telegram Bot

The Bitcoin Token Telegram Bot is a great way to introduce some response automation for your Telegram group. This application is built using the Laravel framework, the Vue.js framework and the Botman library. Database support was added as a way to allow multiple team members to update the bot's response content. You will need a database in order to use this, which could be as simple as SQLite or as complex as MySQL.

Requirements

  • Telegram Bot API key. Instructions for getting this can be found at https://core.telegram.org/bots.
  • Same requirements needed for Laravel 5.6 documented at https://laravel.com/docs/5.6.
  • HTTP server with PHP support (eg: Apache, Nginx, Caddy)
  • A supported database: MySQL, PostgreSQL or SQLite
  • Node.js for running the npm install and npm run production commands.

Installation

  1. Get the source code
  1. Open the terminal of your web server, navigate to telegram-bot and run the following commands:
  • composer install
  • npm install
  • npm run production
  • cp .env-example .env
  • php artisan key:generate
  1. Open the .env file and enter the necessary variables.
  • Your database details for the flavor of SQL you have access to.
  • Set TELEGRAM_TOKEN to your Telegram API generated by the BotFather.
  • Set REGISTRATION_AUTHORIZATION_CODE to a unique value so registration is open to the public.
  1. (Optional) Edit the Mail server details also. It will be required to send emails from the system.
  2. Go back to the terminal, and run php artisan migrate --seed.
  3. Open the browser and navigate to your installed application and go to the /register page to set up your first account.
  4. Begin using the application.
  • Start by adding content to the /help and /start commands.

Once you are ready. Enable the web hook for Telegram. https://botman.io/2.0/driver-telegram

Documentation

You can find the Laravel documentation at https://laravel.com/docs/5.6/installation. You can find the Vue.js documentation at https://vuejs.org/v2/guide/. You can find the BotMan and BotMan Studio documentation at http://botman.io.

Security Vulnerabilities

If you discover a security vulnerability within the bot, please send an e-mail to BTK Development via btkwebmaster@gmail.com. All security vulnerabilities will be promptly addressed.

License

The web wallet is open-sourced software licensed under the MIT license.