Releases: Mateodioev/telegram-bot-api
Release list
Update to bot api v7.2
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
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
Use amphp/http-client v5.0 stable release
Full Changelog: v4.1.2...v4.2.1
Add method getReduced
Full Changelog: v3.5.11...v3.5.12
Add Message Params
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
getUpdatesmethod
Fiexd sendInputFile in stickers
Full Changelog: v3.5.12...v3.5.2
Fixed return type
Full Changelog: v3.5.0...v3.5.1
Update types
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
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
Full Changelog: v3.4.2...v3.4.2.1