Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
/ php-tg-bot Public archive

A simple PHP Bot which ist designed to work as a Telegram Bot manager

Notifications You must be signed in to change notification settings

officialbishowb/php-tg-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 

Repository files navigation

🛑Php Telegram Bot manager

This Php code is designed to manage a simple Telegram Bot

It has also some extra function for people who do Giveaway in Telegram

Commands that are avaiable for normal user

  • /info -> gives user stat
  • /mynotes -> can save notes
  • /stop -> stops the bot-no need to block

Commands that are avaiable for owner

  • /ban -> can ban a user
  • /unban -> can unban a user
  • /lock -> will lock the bot no msg will be forwared
  • /unlock -> will unlock the bot
  • /code -> add a giveaway code will be used as detection (extra feature)
  • /giveaway ->when true then only code that is a giveaway code will be forwared (extra feature)
  • /brodcast ->is used for broadcasting to all bot user BUT this is currently not working

How to use this?

  1. Enter your API Token in the bot.php file
  2. Setup the webhook by https://api.telegram.org/bot.$botToken./setwebhook?url=url. For url use your hosting site url which redirects to the bot.php file

After that the bot should start working

NOTE: This BOT is not used yet as it has some missing function

  1. For Admin -> Reply to sender message
  2. For Admin -> Broadcast a message to all user in the bot. PHP dont work well

Upcoming updates

Using Database (like phpmyAdmin) instead of .txt files

Author: Bishow Bhattarai

About

A simple PHP Bot which ist designed to work as a Telegram Bot manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages