Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
BeyCoder committed Feb 23, 2024
2 parents d328684 + 05d9131 commit 79995b3
Show file tree
Hide file tree
Showing 163 changed files with 13,621 additions and 27,523 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
github: [fabio-ivona, defstudio]
custom: ["https://paypal.me/bdmstore"]
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
- name: Setup node env
uses: actions/[email protected]
with:
node-version: 14
node-version: 16

- name: Install dependencies
run: cd docs && npm install

- name: Generate
run: cd docs && npm run generate
env:
NUXT_APP_BASE_URL: /telegraph

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
php: [8.0, 8.1, 8.2]
php: [8.0, 8.1, 8.2, 8.3]
laravel: [8.*, 9.*, 10.*]
stability: [prefer-lowest, prefer-stable]
exclude:
- php: 8.0
laravel: 10.*
- php: 8.2
stability: prefer-lowest
- php: 8.3
laravel: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand Down
165 changes: 165 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,171 @@

All notable changes to `telegraph` will be documented in this file.

## v1.41.2 - 2024-02-15

### What's Changed

* [Fix] breaking change on minor version by @fabio-ivona in https://github.com/defstudio/telegraph/pull/521

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.41.1...v1.41.2

## v1.41.1 - 2024-02-14

### What's Changed

* Added Ukrainian translations by @RivGames in https://github.com/defstudio/telegraph/pull/513
* fix #518 long polling not working by @fabio-ivona in https://github.com/defstudio/telegraph/pull/519

### New Contributors

* @RivGames made their first contribution in https://github.com/defstudio/telegraph/pull/513

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.41.0...v1.41.1

## v1.41.0 - 2024-02-01

### What's Changed

* [fix] add missing parse_mode in inline queries results by @fabio-ivona in https://github.com/defstudio/telegraph/pull/501
* [fix] DTO lose false values by @fabio-ivona in https://github.com/defstudio/telegraph/pull/502
* [feat] botUpdates timeout, offset and limit by @fabio-ivona in https://github.com/defstudio/telegraph/pull/503

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.40.2...v1.41.0

## v1.40.2 - 2024-02-01

### What's Changed

* docs fixes by @siarheipashkevich in https://github.com/defstudio/telegraph/pull/495
* docs deploy fix by @fabio-ivona

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.40.1...v1.40.2

## v1.40.1 - 2024-01-26

### What's Changed

* documentation review by @siarheipashkevich in https://github.com/defstudio/telegraph/pull/494

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.40.0...v1.40.1

## v1.40.0 - 2024-01-26

### What's Changed

* Update 3.keyboards.md by @siarheipashkevich in https://github.com/defstudio/telegraph/pull/478
* [feat] allows to change a bot's default menu button by @fabio-ivona in https://github.com/defstudio/telegraph/pull/484
* [docs] documentation improvements by @fabio-ivona in https://github.com/defstudio/telegraph/pull/486
* [fix] webhook exceptions handling

### New Contributors

* @siarheipashkevich made their first contribution in https://github.com/defstudio/telegraph/pull/478

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.39.0...v1.40.0

## v1.39.0 - 2024-01-22

### What's Changed

* [chore] Automatic dependencies resolution for callback action method by @fabio-ivona in https://github.com/defstudio/telegraph/pull/475
* [feat] Custom Attachment Limits by @fabio-ivona in https://github.com/defstudio/telegraph/pull/476
* [feat] memberInfo() method + docs by @MarioGattolla in https://github.com/defstudio/telegraph/pull/424
* [feat] custom webhooks url by @fabio-ivona in https://github.com/defstudio/telegraph/pull/477

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.38.7...v1.39.0

## v1.38.7 - 2024-01-08

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.38.6...v1.38.7

## v1.38.6 - 2024-01-08

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.38.5...v1.38.6

## v1.38.5 - 2024-01-08

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.38.4...v1.38.5

## v1.38.4 - 2024-01-08

### What's Changed

* Add missing images to documentation by @jorisdrenth in https://github.com/defstudio/telegraph/pull/455
* Dutch translations by @jorisdrenth in https://github.com/defstudio/telegraph/pull/457
* Upgrade documentation to Nuxt 3 + Docus by @jorisdrenth in https://github.com/defstudio/telegraph/pull/459

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.38.3...v1.38.4

## v1.38.3 - 2024-01-06

### What's Changed

* Update composer.json to use Larastan Org by @arnebr in https://github.com/defstudio/telegraph/pull/446
* Fix documentation WSOD by @jorisdrenth in https://github.com/defstudio/telegraph/pull/454

### New Contributors

* @arnebr made their first contribution in https://github.com/defstudio/telegraph/pull/446
* @jorisdrenth made their first contribution in https://github.com/defstudio/telegraph/pull/454

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.38.2...v1.38.3

## v1.38.2 - 2024-01-03

### What's Changed

* fix typo in telegraph-chat model doc by @SimuraEpona in https://github.com/defstudio/telegraph/pull/402
* Update telegraph-chat.md by @lucidlemon in https://github.com/defstudio/telegraph/pull/408
* Bump browserify-sign from 4.2.1 to 4.2.2 in /docs by @dependabot in https://github.com/defstudio/telegraph/pull/426
* Added Arabic translations by @moayedalhagy in https://github.com/defstudio/telegraph/pull/425
* PHP 8.3 Support by @fabio-ivona in https://github.com/defstudio/telegraph/pull/442
* Fix telegraph fake attached files not clearing between fake requests (ISSUE-432) by @varemel in https://github.com/defstudio/telegraph/pull/433

### New Contributors

* @SimuraEpona made their first contribution in https://github.com/defstudio/telegraph/pull/402
* @lucidlemon made their first contribution in https://github.com/defstudio/telegraph/pull/408
* @varemel made their first contribution in https://github.com/defstudio/telegraph/pull/433

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.38.1...v1.38.2

## v1.38.1 - 2023-08-12

Fix docs

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.38.0...v1.38.1

## v1.38.0 - 2023-08-12

### What's Changed

- [feat] add copyMessage by @semer-11 in https://github.com/defstudio/telegraph/pull/393
- [feat] add ability to write a custom Factory by @ahr1384 in https://github.com/defstudio/telegraph/pull/400
- [lang] Added Spanish translations by @Tievodj in https://github.com/defstudio/telegraph/pull/396

### New Contributors

- @Tievodj made their first contribution in https://github.com/defstudio/telegraph/pull/396
- @semer-11 made their first contribution in https://github.com/defstudio/telegraph/pull/393

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.37.0...v1.38.0

## v1.37.0 - 2023-06-20

### What's Changed

- #185 [Feat] sendAudio method + [Feat] editMedia->audio() method by @MarioGattolla in https://github.com/defstudio/telegraph/pull/380
- Update telegraph-chat.md by @pou in https://github.com/defstudio/telegraph/pull/389
- access to web_app_date in message by @sepgg in https://github.com/defstudio/telegraph/pull/388

### New Contributors

- @pou made their first contribution in https://github.com/defstudio/telegraph/pull/389
- @sepgg made their first contribution in https://github.com/defstudio/telegraph/pull/388

**Full Changelog**: https://github.com/defstudio/telegraph/compare/v1.36.0...v1.37.0

## v1.36.0 - 2023-05-18

### What's Changed
Expand Down
41 changes: 16 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,11 @@
![Pest Laravel Expectations](https://banners.beyondco.de/Laravel%20Telegraph.png?theme=light&packageManager=composer+require&packageName=defstudio%2Ftelegraph&pattern=architect&style=style_1&description=Telegram+bots+made+easy&md=1&showWatermark=1&fontSize=100px&images=phone-outgoing)

<a href="https://packagist.org/packages/defstudio/telegraph" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/v/defstudio/telegraph.svg?style=flat&cacheSeconds=3600" alt="Latest Version on Packagist">
</a>

<a href="https://github.com/defstudio/telegraph/actions?query=workflow%3Arun-tests+branch%3Amain" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/github/actions/workflow/status/defstudio/telegraph/run-tests.yml?branch=main&label=tests&cacheSeconds=3600&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAABiVBMVEUAAAD/iPv9yP3Xm+j/mP//wfVj67Je6bP/h/pVx6p6175d57WQycf+iPn/iPrsnezArd3+t/qpvNJd6LP/jPpu6rv/lPr/kPpc57T/rvtc57Np6rj3oPl37cL/tfn/wv9d6brX//L/g/rYn+n/gvrWm+di6LX+jPrskfGWzMpt6bln4bdd57Jk6LWSycj+vPquwNVo6rde6bP7nvvYnup91b/+vfv/lvtc57OqvNTFs9//t/td57L9t/r/iPpd6LPapej/ovp26bxy67v9lfld6LJr4Ljwsvb/xv3/jv39zv1t6buG5cTDreH5ivlc5rJy676V4cxb57D/y/h50MOy4OCUxcVa77X/iPpe6LP/jP+pu9L8t///tvuQycfArNxp6LzArd151r7/i/9n4bb/j/9e6rT/ifr7ifrskvLYnuhi87tg8blg7bf/vv//lP+wxNtj9b3/qv//oP/+ivz/l/r8ifryn/fvlPTfpPDeofDKtujHtOWX1NF/4seC3cR82sFu7cBo5LiMwPMrAAAAWHRSTlMA/Wv8FAIC/dME/Wj+3tEG/Pv798G1oHRjS0k1LBsWDgsJ/v36+fTy8ezn4+Lh29XNzMzLysLAwLSwr66opJqakY+Ni4J7end0bGlpY11XU048KicmIR8fizl+vwAAAVdJREFUKM9tz2VXAlEQgOFBBURpkE67u7u7E1YFYQl1SbvrlztDiLvss+fc/fCemXMvAEhhKqU759P1rLoxUDUyEh9fPH0z7ALiVrEY+SSNtxNS2upouYv7hOL191aKVsZHUTgbnQPQgDkq4ctHdoQmTWmW4WFzlVUDVpNKXf2fWpWbZIwUq/hcmjWGYnSa1pZZjEoomrEdVAisD7CX6GEb40rqTODxCj21OjDOvjRV8l2jhudBDchg/FUbDIZCITzwQyH6a9+2AMDbm9GfltFnxgAdtQWUgQJl4VQq37uPcSnsfYZzav6Ew18fQ4fUYPM7Qn4uSiIdyx5saJ6T+/3+5KSltshicwI2UpfAKE/aoARTvnn7KMYMdlAUyWRSyHN2JeU42HlCi4TszTHcmuj3iMVdP5JzoyAWNzi6T3ZGrMFCliK3BAqRSC/B2+6IxvYYNcO+2Npfv+yFi10LfBUAAAAASUVORK5CYII=" alt="Tests">
</a>

<a href="https://github.com/defstudio/telegraph/actions?query=workflow%3Alint+branch%3Amain" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/github/actions/workflow/status/defstudio/telegraph/php-cs-fixer.yml?branch=main&label=code%20style&cacheSeconds=3600" alt="Code Style">
</a>

<a href="https://github.com/defstudio/telegraph/actions?query=workflow%3Aphpstan+branch%3Amain" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/github/actions/workflow/status/defstudio/telegraph/phpstan.yml?branch=main&label=phpstan&cacheSeconds=3600" alt="Static Analysis">
</a>

<a href="https://packagist.org/packages/defstudio/telegraph" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/dt/defstudio/telegraph.svg?style=flat&cacheSeconds=3600" alt="Total Downloads">
</a>

<a href="https://packagist.org/packages/defstudio/telegraph" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/l/defstudio/telegraph?style=flat&cacheSeconds=3600" alt="License">
</a>

<a href="https://packagist.org/packages/defstudio/telegraph" target="_blank"><img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/v/defstudio/telegraph.svg?style=flat&cacheSeconds=3600" alt="Latest Version on Packagist"></a>
<a href="https://github.com/defstudio/telegraph/actions?query=workflow%3Arun-tests+branch%3Amain" target="_blank"><img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/github/actions/workflow/status/defstudio/telegraph/run-tests.yml?branch=main&label=tests&cacheSeconds=3600&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAMAAABF0y+mAAABiVBMVEUAAAD/iPv9yP3Xm+j/mP//wfVj67Je6bP/h/pVx6p6175d57WQycf+iPn/iPrsnezArd3+t/qpvNJd6LP/jPpu6rv/lPr/kPpc57T/rvtc57Np6rj3oPl37cL/tfn/wv9d6brX//L/g/rYn+n/gvrWm+di6LX+jPrskfGWzMpt6bln4bdd57Jk6LWSycj+vPquwNVo6rde6bP7nvvYnup91b/+vfv/lvtc57OqvNTFs9//t/td57L9t/r/iPpd6LPapej/ovp26bxy67v9lfld6LJr4Ljwsvb/xv3/jv39zv1t6buG5cTDreH5ivlc5rJy676V4cxb57D/y/h50MOy4OCUxcVa77X/iPpe6LP/jP+pu9L8t///tvuQycfArNxp6LzArd151r7/i/9n4bb/j/9e6rT/ifr7ifrskvLYnuhi87tg8blg7bf/vv//lP+wxNtj9b3/qv//oP/+ivz/l/r8ifryn/fvlPTfpPDeofDKtujHtOWX1NF/4seC3cR82sFu7cBo5LiMwPMrAAAAWHRSTlMA/Wv8FAIC/dME/Wj+3tEG/Pv798G1oHRjS0k1LBsWDgsJ/v36+fTy8ezn4+Lh29XNzMzLysLAwLSwr66opJqakY+Ni4J7end0bGlpY11XU048KicmIR8fizl+vwAAAVdJREFUKM9tz2VXAlEQgOFBBURpkE67u7u7E1YFYQl1SbvrlztDiLvss+fc/fCemXMvAEhhKqU759P1rLoxUDUyEh9fPH0z7ALiVrEY+SSNtxNS2upouYv7hOL191aKVsZHUTgbnQPQgDkq4ctHdoQmTWmW4WFzlVUDVpNKXf2fWpWbZIwUq/hcmjWGYnSa1pZZjEoomrEdVAisD7CX6GEb40rqTODxCj21OjDOvjRV8l2jhudBDchg/FUbDIZCITzwQyH6a9+2AMDbm9GfltFnxgAdtQWUgQJl4VQq37uPcSnsfYZzav6Ew18fQ4fUYPM7Qn4uSiIdyx5saJ6T+/3+5KSltshicwI2UpfAKE/aoARTvnn7KMYMdlAUyWRSyHN2JeU42HlCi4TszTHcmuj3iMVdP5JzoyAWNzi6T3ZGrMFCliK3BAqRSC/B2+6IxvYYNcO+2Npfv+yFi10LfBUAAAAASUVORK5CYII=" alt="Tests"></a>
<a href="https://github.com/defstudio/telegraph/actions?query=workflow%3Alint+branch%3Amain" target="_blank"><img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/github/actions/workflow/status/defstudio/telegraph/php-cs-fixer.yml?branch=main&label=code%20style&cacheSeconds=3600" alt="Code Style"></a>
<a href="https://github.com/defstudio/telegraph/actions?query=workflow%3Aphpstan+branch%3Amain" target="_blank"><img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/github/actions/workflow/status/defstudio/telegraph/phpstan.yml?branch=main&label=phpstan&cacheSeconds=3600" alt="Static Analysis"></a>
<a href="https://packagist.org/packages/defstudio/telegraph" target="_blank"><img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/dt/defstudio/telegraph.svg?style=flat&cacheSeconds=3600" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/defstudio/telegraph" target="_blank"><img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/l/defstudio/telegraph?style=flat&cacheSeconds=3600" alt="License"></a>
<a href="https://twitter.com/FabioIvona?ref_src=twsrc%5Etfw"><img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/FabioIvona?label=Follow&style=social"></a>

---
Expand Down Expand Up @@ -100,9 +82,18 @@ Please review [our security policy](../../security/policy) on how to report secu

- [Fabio Ivona](https://github.com/defstudio)
- [Andrea Marco Sartori](https://github.com/cerbero90) for his cool ideas
- [Alberto Pieripolli](https://github.com/trippo) who had the great Pest badge idea
- [Alberto Pieripolli](https://github.com/trippo) Pest badge
- [Joris Drenth](https://github.com/jorisdrenth) Docs fix and upgrade
- [All Contributors](../../contributors)

## Translators

- [Tievo](https://github.com/Tievodj) Spanish
- [Andrey Helldar](https://github.com/andrey-helldar) Russian
- [Joris Drenth](https://github.com/jorisdrenth) Dutch
- [Moayed Alhagy](https://github.com/moayedalhagy) Arabic


## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"friendsofphp/php-cs-fixer": "^v3.13.0",
"guzzlehttp/guzzle": "^7.5.0",
"nunomaduro/collision": "^v5.11.0 | ^v6.3.1",
"nunomaduro/larastan": "^1.0.4 | ^2.4.0",
"larastan/larastan": "^1.0.4 | ^2.4.0",
"orchestra/testbench": "^v6.25.1 | ^v7.13.0 | ^8.0",
"pestphp/pest": "^v1.22.2",
"pestphp/pest-plugin-laravel": "^v1.3.0",
Expand Down
37 changes: 37 additions & 0 deletions config/telegraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
*/
'webhook_handler' => DefStudio\Telegraph\Handlers\EmptyWebhookHandler::class,

/*
* Sets the webhook URL that will be exposed by the server,
* this can be customized or entirely disabled (by setting it to NULL)
*/
'webhook_url' => '/telegraph/{token}/webhook',

/*
* Sets a custom domain when registering a webhook. This will allow a local telegram bot api server
* to reach the webhook. Disabled by default
Expand Down Expand Up @@ -117,4 +123,35 @@
],
],
],

/**
* Attachment validation rules, Telegram bot API defaults are set
* can be changed to match higher limits when using a local bot
* API server (ref. https://core.telegram.org/bots/api#using-a-local-bot-api-server)
*/
'attachments' => [
'thumbnail' => [
'max_size_kb' => 200,
'max_height_px' => 320,
'max_width_px' => 320,
'allowed_ext' => ['jpg'],
],
'photo' => [
'max_size_mb' => 10,
'max_ratio' => 20,
'height_width_sum_px' => 10000,
],
'animation' => [
'max_size_mb' => 50,
],
'video' => [
'max_size_mb' => 50,
],
'audio' => [
'max_size_mb' => 50,
],
'document' => [
'max_size_mb' => 50,
],
],
];
3 changes: 0 additions & 3 deletions docs/.env.example

This file was deleted.

4 changes: 4 additions & 0 deletions docs/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
.output
.nuxt
8 changes: 8 additions & 0 deletions docs/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
root: true,
extends: '@nuxt/eslint-config',
rules: {
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 'off'
}
}
1 change: 1 addition & 0 deletions docs/.gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ coverage
dist
sw.*
.env
.output
2 changes: 2 additions & 0 deletions docs/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
14 changes: 3 additions & 11 deletions docs/README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Telegraph Docs
# docs

## Setup

Expand All @@ -22,14 +22,6 @@ This will create the `dist/` directory for publishing to static hosting:
npm run generate
```

To preview the static generated app, run `npm run start`
To preview the static generated app, run `npm run preview`

## Deployment to Github Pages

This will copy the `dist/` directory with static files to Github Pages branch and push it:

```bash
npm run deploy
```

For detailed explanation on how things work, checkout [nuxt/content](https://content.nuxtjs.org) and [@nuxt/content theme docs](https://content.nuxtjs.org/themes-docs).
For detailed explanation on how things work, checkout [nuxt/content](https://content.nuxtjs.org) and [@nuxt-themes/docus](https://docus.dev).
Loading

0 comments on commit 79995b3

Please sign in to comment.