https://github.com/azarattum/interbot
A telegram bot for Interkot.
https://github.com/azarattum/interbot
Last synced: about 1 year ago
JSON representation
A telegram bot for Interkot.
- Host: GitHub
- URL: https://github.com/azarattum/interbot
- Owner: Azarattum
- Created: 2022-06-08T15:11:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-08T15:25:40.000Z (about 4 years ago)
- Last Synced: 2025-01-30T23:30:31.486Z (over 1 year ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Interbot
[ENG] [[RU]](README.ru.md)
A telegram bot for [Interkot](http://www.interkot.ru/).
## Installation
1) Clone the repo
```sh
git clone https://github.com/Azarattum/Interbot.git
cd Interbot
```
2) Add a website's API endpoint and a telegram token ([obtain here](https://t.me/botfather/)) in `config.php`:
```php
$api = "https://example.com/";
$token = "123456:ASDFGH-9876";
```
3) Setup a Telegram web hook for your server using the following URL:
```
↓ INSERT TOKEN HERE
https://api.telegram.org/bot /setWebhook?url=
↑ INSERT URL HERE
```
4) Run the bot (for development environment)
```sh
php -S localhost:8000
```
5) (Optional) For development purposes you might also expose your local port using [ngrok](https://ngrok.com/):
```sh
ngrok http 8000
```
## Credit
This project uses a slightly modified version of [radyakaze's telebot library](https://github.com/radyakaze/Telebot).