Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Latest commit

 

History

History
40 lines (33 loc) · 1.61 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.61 KB

🛑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