PHPackages                             aahl/flysystem-telegram - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. aahl/flysystem-telegram

ActiveLibrary[File &amp; Storage](/categories/file-storage)

aahl/flysystem-telegram
=======================

Flysystem adapter backed by Telegram Bot API file storage.

0.1.0-beta3(2w ago)15↓75%MITPHPPHP ^8.1

Since May 22Pushed 2w agoCompare

[ Source](https://github.com/aahl/flysystem-telegram)[ Packagist](https://packagist.org/packages/aahl/flysystem-telegram)[ RSS](/packages/aahl-flysystem-telegram/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Flysystem Telegram
==================

[](#flysystem-telegram)

A Flysystem 3 storage adapter backed by the Telegram Bot API.

This package treats files attached to Telegram messages as object storage and keeps local metadata for Flysystem paths, Telegram `file_id` values, MIME types, visibility, and chunk information. SQLite is the default metadata store, and the public `MetadataStore` interface allows replacing it with Redis, MySQL, or another backend later.

Installation
------------

[](#installation)

```
composer require aahl/flysystem-telegram
```

Requirements
------------

[](#requirements)

- PHP 8.1+
- `ext-pdo`
- One metadata driver extension:
    - `ext-pdo_sqlite` for the default SQLite metadata store
    - `ext-pdo_mysql` for `MysqlMetadataStore`
- A Telegram Bot token
- A Telegram chat id where the bot can send messages

Quick start
-----------

[](#quick-start)

```
