Kuttit Bot is a Telegram Bot URL shortner with php.
Contributions and bug reports are welcome.
Here is a brief introduction to bot's features.
- PHP v7.1
- MySQL v5.7
Tip: I use phpmyadmin to manage database.
- Clone this repository.
- Make a new Database and use
database-structure.sql
file to generate the tables. - Make a new Telegram bot with BotFather and copy your bot API Key.
- Register in Kutt Website and copy your API key.
- In Telegram, Use User info bot to get your telegram ID.
- Edit
config.php
file- Complete Database Section with your information
- Compelete API Section with
Step 3 &4
Information (API Key). - Complete Admin Section with
Step 5
Information (Telegram ID). - Save
config.php
file.
- Uploade whole project folder to your server / host.
- Set Telegram Webhook with this format:
https://api.telegram.org/bot<TOKEN>/setwebhook?url=path/to/project/kutt.php
Tip: You must open this url in your browser.
Command | Description |
---|---|
/start |
Start the bot |
/admin |
Show SuperAdmin or Admins panel |
- Add User Link Status
- Add URL Delete Option
- Add User Keyboard to change language & change user table in database
- Add User change language system
- And more...
Pull requests are welcome. You'll probably find lots of improvements to be made.
Open issues for feedback, requesting features, reporting bugs or discussing ideas.
Special thanks to Thedevs-network and Pouria Ezzati.
This project is licensed under the MIT License - see the LICENSE.md file for details