https://github.com/devblin/telebot
🤖 A multipurpose, feature-rich telegram bot for your entertainment purposes.
https://github.com/devblin/telebot
entertainment-bot fun-bot php telegram-bot telegram-bot-api
Last synced: 3 months ago
JSON representation
🤖 A multipurpose, feature-rich telegram bot for your entertainment purposes.
- Host: GitHub
- URL: https://github.com/devblin/telebot
- Owner: devblin
- Created: 2020-09-17T09:18:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-19T05:43:31.000Z (about 4 years ago)
- Last Synced: 2025-02-27T14:29:17.602Z (12 months ago)
- Topics: entertainment-bot, fun-bot, php, telegram-bot, telegram-bot-api
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telebot
🤖 A multipurpose, feature-rich telegram bot.
## Contents:
- [Setup](#setup)
- [Commands](#commands)
## Setup
1. Get your bot token using BotFather.
2. Create .env using .env.example and replace with the bot token generated.
3. Go to https://api.telegram.org/bot[TOKEN]/setWebhook?url=[BASE_HTTPS_URL].
- Set web-hook:
```js
{
"ok": true,
"result": true,
"description": "Webhook was set"
}
```
- Check if web-hook is set:
Go to URL: https://api.telegram.org/botYOUR_API_KEY/getWebhookInfo
- Response
```js
{
"ok":true,
"result":{
"url":"BASE_HTTPS_URL",
"has_custom_certificate":false,
"pending_update_count":0,
"max_connections":40
}
}
```
- If not set:
Go to URL https://api.telegram.org/botYOUR_API_KEY/deleteWebhook
- Then, repeat from Step-3 again :).
## Commands
- /start : Start journey with the bot.
- /poll : Create poll.
- /send : Send message to users/groups.