Skip to content

Releases: Mateodioev/telegram-bot-api

Update to bot api v7.2

Choose a tag to compare

@Mateodioev Mateodioev released this 03 Apr 19:04

Note: Some types change

Bot api changelog: https://core.telegram.org/bots/api#march-31-2024
Full Changelog: v4.3.5...v4.4

Fix upload and download files

Choose a tag to compare

@Mateodioev Mateodioev released this 02 Dec 16:32

You can use this sintax to download telegram files

$api->downloadFile($file, __DIR__ . '/my-file');

Where $file is a Mateodioev\Bots\Telegram\Types\File instance

For upload files you need to use the Mateodioev\Bots\Telegram\Types\InputFile object like this

$api->sendDocument('CHAT_ID', InputFile::fromLocal('/path/to/document'));
$api->sendPhoto('CHAT_ID', InputFile::fromLocal('/path/to/photo.jpg'));

For send multiple files use Core::sendMediaGroup method

See more example in examples/sending-files.php

Full Changelog: v4.3.4.1...v4.3.5

v4.2.1

Choose a tag to compare

@Mateodioev Mateodioev released this 09 Oct 05:39

Use amphp/http-client v5.0 stable release

Full Changelog: v4.1.2...v4.2.1

Add method getReduced

Choose a tag to compare

@Mateodioev Mateodioev released this 08 Sep 02:24

Full Changelog: v3.5.11...v3.5.12

Add Message Params

Choose a tag to compare

@Mateodioev Mateodioev released this 08 Sep 02:24

New Mateodioev\Bots\Telegram\Types\Message params:

  • new_chat_participant
  • new_chat_member

I don't know where they come from, but they come with the getUpdates method

Fiexd sendInputFile in stickers

Choose a tag to compare

@Mateodioev Mateodioev released this 30 Jun 03:00

Full Changelog: v3.5.12...v3.5.2

Fixed return type

Choose a tag to compare

@Mateodioev Mateodioev released this 05 May 17:28

Full Changelog: v3.5.0...v3.5.1

Update types

Choose a tag to compare

@Mateodioev Mateodioev released this 05 May 04:26

Update object type to telegram bot api v6.7
See more: https://core.telegram.org/bots/api#april-21-2023

Full Changelog: v3.4.3...v3.5.0

Add legacy params

Choose a tag to compare

@Mateodioev Mateodioev released this 22 Apr 03:47

Added thumb param for legacy reason

https://core.telegram.org/bots/api#march-9-2023

Full Changelog: v3.4.2.1...v3.4.3

Catch exception creating Types

Choose a tag to compare

@Mateodioev Mateodioev released this 22 Apr 03:24

Full Changelog: v3.4.2...v3.4.2.1