Skip to content

ZiTAL/php-telebot-heroku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 5, 2018
3f9b7ee · Jul 5, 2018

History

20 Commits
Jul 2, 2015
Jul 5, 2018
Aug 21, 2015
Jul 3, 2015
Jul 2, 2015
Sep 29, 2016
Jul 3, 2015
Jul 2, 2015
Jul 2, 2015
Jul 2, 2015

Repository files navigation

php-telebot-heroku

PHP Telegram BOT for Heroku

EDIT: config.json with Heroku APP ID and TELEGRAM API KEY

EDIT: lib/telegram.php to write your commands

Get Telegram API Key: https://core.telegram.org/bots#botfather

GNU/Linux Instructions:

Create an account in Heroku: https://www.heroku.com

Create a new app in Heroku: https://dashboard.heroku.com/new

Install Heroku

su
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
exit

Download project:

mkdir -p /home/projects
cd /home/projects
git clone https://github.com/ZiTAL/php-telebot-heroku.git
cd /home/projects/php-telebot-heroku
rm -rf .git

Connect the project to Heroku's git:

heroku login
heroku create
git init

Edit config.json with HEROKU APP ID and TELEGRAM API KEY Upload changes to Heroku and Deploy the application:

git add .
git commit -m "my first commit"
heroku git:remote -a HEROKU_APP_ID
git push heroku master

License

GPLv3

About

PHP Telegram BOT for Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published