Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
/ WinTenBot Public archive

Official bot repository for WinTenBot, written in PHP [DEPRECATED]

License

Notifications You must be signed in to change notification settings

teknolugu/WinTenBot

Repository files navigation

Overview

Welcome to the Official Repository for WinTenBot Telegram Bot.
This engine bot is a new engine bot that currently use in WinTenBot and still tested for new feature update in WinTenBetaBot. This project is open source, everyone is free to use this source code. Source code based on the PHP framework Php Telegram Bot.

Our Community

Join one of the following Groups and Channels. In this group we test and debug our Bot for improve reability.

WinTenBetaBot is restricted as Beta, you can't add to your group. Please use WinTenBot as Stable. Beta is for testing purposes only

We have special Developer edition which include Dev integration like git push event, build event, ci/cd, etc. he called WinTen Dev Bot. You can add it into your group.

How to deploy or run locally

How to run or install this Project for your own bot.

Make sure you have installed composer and at least PHP 7.0

  1. Clone this repo, then open in terminal
  2. Run composer install
  3. Copy paste all file under Resources\Config and root which with .example subfix (example bots.php.example to bots.php) and fill config match your nessesary.
  4. Run mode
    • Poll mode
      1. If you want to run locally type php multi-poll.php [id bot in bots.php]
      2. Wait until get Bot is must ready!
    • Webhook
      1. Note: single hook mode is deprecated, please use multi-hook
      2. If you want to run as webhook, you must upload this project to your server with HTTPS (SSL) support. for speed reason, we recommended using VPS.
      3. fill at least one bots entry in file Resources\Config\bots.php. you can call using https://yourserver.com/multi-hook.php?id=your_bot_id
      4. Set webhook using postman or directly using browser or curl in terminal.

Note: One bot can't run on poll and hook mode same time.

Feel free ask about deployment to Telegram Bot API or WinTen Dev

Powered by