PHPackages                             danog/tg-dialog-id - 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. [API Development](/categories/api)
4. /
5. danog/tg-dialog-id

ActiveLibrary[API Development](/categories/api)

danog/tg-dialog-id
==================

A library to work with Telegram bot API dialog IDs

2.0.0(10mo ago)11181.6k—0.3%2Apache-2.0PHPCI passing

Since May 10Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/danog/tg-dialog-id)[ Packagist](https://packagist.org/packages/danog/tg-dialog-id)[ GitHub Sponsors](https://github.com/danog)[ RSS](/packages/danog-tg-dialog-id/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (2)

tg-dialog-id
============

[](#tg-dialog-id)

[![codecov](https://camo.githubusercontent.com/bdc92ed6baa9b3c4e9469600f09b7f266076ec2c92ec8b59d7e08dfc49a53d17/68747470733a2f2f636f6465636f762e696f2f67682f64616e6f672f74672d6469616c6f672d69642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/danog/tg-dialog-id)[![Psalm coverage](https://camo.githubusercontent.com/2809a2c5bb75d674fd3777dc982b531173101045f711d24deae256e719cc4fdd/68747470733a2f2f73686570686572642e6465762f6769746875622f64616e6f672f74672d6469616c6f672d69642f636f7665726167652e737667)](https://shepherd.dev/github/danog/tg-dialog-id)[![Psalm level 1](https://camo.githubusercontent.com/0e4886a9429d1f3b18b8940246b99b66650cdfd14d05a7810aae8c5ff0fb1cdb/68747470733a2f2f73686570686572642e6465762f6769746875622f64616e6f672f74672d6469616c6f672d69642f6c6576656c2e737667)](https://shepherd.dev/github/danog/tg-dialog-id)[![Mutation testing badge](https://camo.githubusercontent.com/573987c24e7722749d5b894281b7d82b897a75235a251dfbadd59269d9de6101/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324664616e6f6725324674672d6469616c6f672d69642532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/danog/tg-dialog-id/master)[![License](https://camo.githubusercontent.com/d92d1d55091065b6b347b7577a4f8fdffba896bbc215b1e95882444fa5dbccc4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64616e6f672f74672d6469616c6f672d6964)](https://camo.githubusercontent.com/d92d1d55091065b6b347b7577a4f8fdffba896bbc215b1e95882444fa5dbccc4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f64616e6f672f74672d6469616c6f672d6964)

A library to work with Telegram bot API dialog IDs.

Created by Daniil Gentili ().

This library was initially created for [MadelineProto](https://docs.madelineproto.xyz), an async PHP client API for the telegram MTProto protocol.

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

[](#installation)

```
composer require danog/tg-dialog-id
```

Usage
-----

[](#usage)

```
