Skip to content

Releases: Mateodioev/telegram-bot-api

Update to bot api v7.2

03 Apr 19:04
Compare
Choose a tag to compare

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

02 Dec 16:32
Compare
Choose a tag to compare

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

09 Oct 05:39
Compare
Choose a tag to compare

Use amphp/http-client v5.0 stable release

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

Add method getReduced

08 Sep 02:24
Compare
Choose a tag to compare

Add Message Params

08 Sep 02:24
Compare
Choose a tag to compare

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

30 Jun 03:00
Compare
Choose a tag to compare

Fixed return type

05 May 17:28
Compare
Choose a tag to compare

Update types

05 May 04:26
Compare
Choose a tag to compare

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

22 Apr 03:47
Compare
Choose a tag to compare

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

22 Apr 03:24
Compare
Choose a tag to compare