Skip to content

Commit

Permalink
feat: support telegram topics
Browse files Browse the repository at this point in the history
  • Loading branch information
bernard-ng committed Jul 13, 2024
1 parent 06ddd76 commit 13b1370
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
* - [disable_notification]: bool, defaults to false, sends the message silently. Users will receive a notification with no sound
* - [split_long_messages]: bool, defaults to false, split messages longer than 4096 bytes into multiple messages
* - [delay_between_messages]: bool, defaults to false, adds a 1sec delay/sleep between sending split messages
* - [topic]: int, defaults to null, message_thread_id, unique identifier for the target message thread (topic) of the forum; for forum supergroups only
*
* - sampling:
* - handler: the wrapped handler's name
Expand Down Expand Up @@ -595,6 +596,7 @@ public function getConfigTreeBuilder(): TreeBuilder
->booleanNode('disable_notification')->defaultNull()->end() // telegram
->booleanNode('split_long_messages')->defaultFalse()->end() // telegram
->booleanNode('delay_between_messages')->defaultFalse()->end() // telegram
->scalarNode('topic')->defaultNull()->end() // telegram
->integerNode('factor')->defaultValue(1)->min(1)->end() // sampling
->arrayNode('tags') // loggly
->beforeNormalization()
Expand Down
1 change: 1 addition & 0 deletions DependencyInjection/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
$handler['disable_notification'],
$handler['split_long_messages'],
$handler['delay_between_messages'],
$handler['topic']
]);
break;

Expand Down

0 comments on commit 13b1370

Please sign in to comment.