Skip to content
A telegram bot with php using Kutt.it API to generate shorten URL.
PHP TSQL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
locale
model
system
LICENSE.md
README.md
config.php
database-structure.sql
kutt.php

README.md

Kuttit Bot

Kuttit Bot is a Telegram Bot URL shortner with php.

Contributions and bug reports are welcome.

Table of Contents

Introduce Features

Here is a brief introduction to bot's features.

Users

user

SuperAdmin

superadmin

Admins

admin

Requirements

  • PHP v7.1
  • MySQL v5.7

Tip: I use phpmyadmin to manage database.

Setup

  1. Clone this repository.
  2. Make a new Database and use database-structure.sql file to generate the tables.
  3. Make a new Telegram bot with BotFather and copy your bot API Key.
  4. Register in Kutt Website and copy your API key.
  5. In Telegram, Use User info bot to get your telegram ID.
  6. Edit config.php file config
    • 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.
  7. Uploade whole project folder to your server / host.
  8. 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.

Usage

Command Description
/start Start the bot
/admin Show SuperAdmin or Admins panel

ToDo List

  • 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...

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

You can’t perform that action at this time.