Skip to content

A Telegram BaseCode For PHP Bots To Run in Heroku Services

License

Notifications You must be signed in to change notification settings

Amir666sa/Heroku-PHP-Bot-Base

 
 

Repository files navigation

A Telegram BaseCode For PHP Bots To Run in Heroku Services

Table of Contents

Installation

# Install dependencies
# Tested on PHP 8

🔷 To Run Your Robot, Do The Following Stuff 🔶

1️⃣ Edit The "bot.php" File in Your Github That Forked From My Repo and Put Your Code in it.

2️⃣ Go To https://www.heroku.com and Hit the [Sign Up] Button or directly Go To https://signup.heroku.com and signup with your information.

3️⃣ after Login To Your DashBoard Press The [Create new app] Button and in New Page Enter Your APPNAME and Press [Create App] Button.

4️⃣ in New Page Click [GitHub] Button and Scrol Down Then Press [Connect To GitHub] Button.

5️⃣ a Popup Screen Will Open, So Click [Authorize heroku] Button to Connect Your GitHub Profile To Heroku Services.

6️⃣ next You Have to Search Your Repo Name and Connect it To Your Heroku Application.

7️⃣ Then Click [Enable Automatic Deploys] and finally click [Deploy Branch] button To Deploy Your Repo To Heroku.
if You see "Your app was successfully deployed." Message, Congratulations You Did it ...

8️⃣ Set Your Bot Webhook With This address : "https://api.telegram.org/bot[TOKEN]/setwebhook?url=[DOMAIN]/bot.php"
🔎 Hint » Use Your Token instead of [TOKEN] and Your Site address instead of [DOMAIN]

🤖 Enjoy ...

You Can See Your Server info by Using This address : site.com/serverinfo

also You Can See Your PHP info by Using This address : site.com/phpinfo

Support and development

Developer : Saeed Zareen

Channel : EdgeTeam

About

A Telegram BaseCode For PHP Bots To Run in Heroku Services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.1%
  • Hack 0.9%