Skip to content

v1.3.0

Choose a tag to compare

@luzrain luzrain released this 12 Oct 10:31
· 37 commits to master since this release

Added interface for processing command descriptions. For translation as an example.
Example of usage:

use Luzrain\TelegramBotBundle\TelegramBot\CommandDescriptionProcessor;
use Symfony\Component\DependencyInjection\Attribute\AsAlias;

#[AsAlias('telegram_bot.description_processor')]
final class TranslatableDescriptionProcessor implements CommandDescriptionProcessor
{
    public function process(string $description): string
    {
        return $description;
    }
}