Skip to content

devdasher/xshare2bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 XShare2Bot

The XShare2Bot bot is a simple and practical bot for saving and sharing Telegram posts, whose source code is written using the Nutgram library and is very flexible, modular and clean. The source code of this bot is released under the MIT license and is free to use. The initial version of this source code has been developed for educational purposes, and the responsibility of any misuse of it against the laws of the country rests with the user.

You can edit and use this source code according to your needs.

There may be some bugs in the source code, But it is worth fixing it yourself.

🔮 Preview

photo_2023-10-14_02-39-55

🛠️ Installation

  • Clone this repository: git clone https://github.com/devdasher/xshare2bot
  • In root path, run this command to install dependencies: composer install (You need to install Composer first)
  • Create a database named xshare2bot (in MySQL)
  • Then import sql/xshare2bot.sql to your database
  • Add your bot & database info in the config/config.php (Remember to add your Telegram ID too)
  • You can run your bot using this command in terminal: php index.php, this will run your bot in LongPolling running mode
  • But if you want to use Webhook running mode, Uncomment this piece of code $bot->setRunningMode($webhook); in index.php at line 39. Now you can setWebhook on index.php file for production

🙌 Credits

devdasher

📜 License

The MIT License. Please see License File for more information.

⚠️ Disclaimer of Warranty

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages