Skip to content

Commit 5437d9e

Browse files
MKC-MKCfabpot
authored andcommitted
[Notifier][Telegram] Add TelegramOptions::messageThreadId()
1 parent 73ce8e5 commit 5437d9e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/Symfony/Component/Notifier/Bridge/Telegram/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
7.4
5+
---
6+
7+
* Add support for `messageThreadId` option in `TelegramOptions`
8+
49
6.4
510
---
611

src/Symfony/Component/Notifier/Bridge/Telegram/TelegramOptions.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ public function chatId(string $id): static
4848
return $this;
4949
}
5050

51+
/**
52+
* @return $this
53+
*/
54+
public function messageThreadId(int $threadId): static
55+
{
56+
$this->options['message_thread_id'] = $threadId;
57+
58+
return $this;
59+
}
60+
5161
/**
5262
* @return $this
5363
*/

0 commit comments

Comments
 (0)