[![Join the bot support group on Telegram](https://img.shields.io/badge/telegram-@PHP__Telegram__Bot__Support-64659d.svg)](https://telegram.me/PHP_Telegram_Bot_Support)
[![Join the bot support group on Telegram](https://img.shields.io/badge/telegram-@PHP__Telegram__Bot__Support-32a2da.svg)](https://telegram.me/PHP_Telegram_Bot_Support)
![Telegram Bot API Logo](assets/logo/512px/logo_plain.png)
A Telegram Bot based on the official [Telegram Bot API][Telegram-Bot-API]
## Table of Contents
## Table of Contents
-[Introduction](#introduction)
-[Introduction](#introduction)
-[Instructions](#instructions)
-[Instructions](#instructions)
...
@@ -65,61 +65,55 @@ A Telegram Bot based on the official [Telegram Bot API][Telegram-Bot-API]
...
@@ -65,61 +65,55 @@ A Telegram Bot based on the official [Telegram Bot API][Telegram-Bot-API]
-[License](#license)
-[License](#license)
-[Credits](#credits)
-[Credits](#credits)
## Introduction
## Introduction
This is a pure PHP Telegram Bot, fully extensible via plugins.
This is a pure PHP Telegram Bot, fully extensible via plugins.
Telegram recently announced official support for a [Bot
API](https://telegram.org/blog/bot-revolution) allowing integrators of
Telegram announced official support for a [Bot API](https://telegram.org/blog/bot-revolution), allowing integrators of all sorts to bring automated interactions to the mobile platform.
all sorts to bring automated interactions to the mobile platform. This
This Bot aims to provide a platform where one can simply write a bot and have interactions in a matter of minutes.
Bot aims to provide a platform where one can simply write a plugin
and have interactions in a matter of minutes.
The Bot can:
The Bot can:
-retrieve updates with webhook and getUpdates methods.
-Retrieve updates with [webhook][#webhook-installation] and [getUpdates][#getupdates-installation] methods.
-supports all types and methods according to Telegram API (25 May 2016).
-Supports all types and methods according to Telegram API 4.3 (May 2019).
-supports supergroups.
-Supports supergroups.
-handle commands in chat with other bots.
-Handle commands in chat with other bots.
-manage Channel from the bot admin interface.
-Manage Channel from the bot admin interface.
-full support for **inline bots**.
-Full support for **inline bots**.
-inline keyboard.
-Inline keyboard.
- Messages, InlineQuery and ChosenInlineQuery are stored in the Database.
- Messages, InlineQuery and ChosenInlineQuery are stored in the Database.
- Conversation feature
- Conversation feature.
---
-----
This code is available on [GitHub](https://github.com/php-telegram-bot/core). Pull requests are welcome.
This code is available on
[Github](https://github.com/php-telegram-bot/core). Pull requests are welcome.
## Instructions
## Instructions
### Create your first bot
### Create your first bot
1. Message @botfather https://telegram.me/botfather with the following
1. Message [`@BotFather`](https://telegram.me/BotFather) with the following text: `/newbot`
text: `/newbot`
If you don't know how to message by username, click the search
If you don't know how to message by username, click the search field on your Telegram app and type `@BotFather`, where you should be able to initiate a conversation. Be careful not to send it to the wrong contact, because some users have similar usernames to `BotFather`.
field on your Telegram app and type `@botfather`, where you should be able
to initiate a conversation. Be careful not to send it to the wrong
contact, because some users has similar usernames to `botfather`.
<ahref="https://tidelift.com/subscription/pkg/packagist-longman-telegram-bot?utm_source=packagist-longman-telegram-bot&utm_medium=referral&utm_campaign=readme-footer">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security).
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
Tidelift will then coordinate the fix and disclosure.