An open API service indexing awesome lists of open source software.

https://github.com/zeuxisoo/tools-msgbot

Simple tools for testing tg bot message
https://github.com/zeuxisoo/tools-msgbot

bot php telegram tools web

Last synced: over 1 year ago
JSON representation

Simple tools for testing tg bot message

Awesome Lists containing this project

README

          

# Tools MsgBot

Simple tools for testing tg bot message

## Usage

Download the composer

curl https://getcomposer.org/composer.phar -o composer.phar

Install the vendors

php composer.phar install

Edit the config file

cp config.php.example config.php
vim config.php

## Config

1. Get the token from telegram
2. Set the webhook enable when using in production mode
3. Set the webhook url to your full domain url when webhook is enabled

## Action

1. Enable webhook on bot

api.php?action=set-web-hook

2. Remove webhhok on bot

api.php?action=remove-web-hook