Skip to content

Releases: Mateodioev/telegram-bot-api

Add support for multiple types

20 Apr 05:08
Compare
Choose a tag to compare

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

08 Apr 17:23
Compare
Choose a tag to compare

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

01 Apr 15:41
Compare
Choose a tag to compare

Now you can enable amphp/http-client with Api::setAsync($async)

Full Changelog: v3.3.1...v3.4.0

Update curl settings

26 Feb 05:58
Compare
Choose a tag to compare

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

24 Feb 15:35
Compare
Choose a tag to compare

Add methods in Mateodioev\Bots\Telegram\Api

  • editMessageText
  • editMessageCaption
  • editMessageReplyMarkup
  • stopPoll
  • deleteMessage

Full Changelog: v3.2.2...v3.3.0

Fixed bug

20 Feb 19:55
ad5b629
Compare
Choose a tag to compare

Fixed error creating a Mateodioev\Bots\Telegram\Types\File object

Add method replyTo

13 Feb 02:48
Compare
Choose a tag to compare

Fix bug

11 Feb 03:23
3fa94b1
Compare
Choose a tag to compare

Full Changelog: v3.2...v3.2.1

Add support for php 8.2

10 Feb 05:50
8e7cefa
Compare
Choose a tag to compare

Bug fix: arrays in arrays

10 Feb 05:33
37d0ce4
Compare
Choose a tag to compare

Added support for Array of button rows

See more

Full Changelog: v3.0.1...v3.1