Releases: Mateodioev/telegram-bot-api
Releases · Mateodioev/telegram-bot-api
Add support for multiple types
Now fields support multiple types
Example:
use Mateodioev\Bots\Telegram\Types\baseType;
class MyCustomType extends basetype
{
protected array $fields = [
'field_1' => 'integer|string|array'
];
}
Full Changelog: v3.4.1...v3.4.2
Update telegram types
Now is more simple to create new telegram types
Format:
namespace Mateodioev\Bots\Telegram\Types;
/**
* Documentation here ...
*/
class MyTelegramType extends baseType
{
protected array $fields = [
'field_1' => 'field_1_type' // 'id' => 'integer'
];
}
Full Changelog: v3.4.0...v3.4.1
Async support
Now you can enable amphp/http-client
with Api::setAsync($async)
Full Changelog: v3.3.1...v3.4.0
Update curl settings
Use $timeout
param in method Mateodioev\Bots\Telegram\Api::getUpdates
to set CURLOPT_TIMEOUT
Full Changelog: v3.3.0...v3.3.1
Add update message methods
Add methods in Mateodioev\Bots\Telegram\Api
- editMessageText
- editMessageCaption
- editMessageReplyMarkup
- stopPoll
- deleteMessage
Full Changelog: v3.2.2...v3.3.0
Fixed bug
Fixed error creating a Mateodioev\Bots\Telegram\Types\File
object
Add method replyTo
Full Changelog: v3.2.1...v3.2.2
Fix bug
Full Changelog: v3.2...v3.2.1
Add support for php 8.2
Full Changelog: v3.1...v3.2