DEF STUDIO srl

Need help with Laravel and web development?

Hire one of our experts for your projects.

We build tailored products, websites and platforms — with care for UX, performance and maintainability.

Booking open for Q4 — limited slots

You are seeing the documentation for version 1, but the last version for this package is v1. Click here to go to the last version.

Translating

Telegraph interacts with Telegram users is multiple ways, in order to offer a better user experience, it's responses can be localized in the user's language:

//in webhook

App::setLocale($this->message->from()->languageCode());

$this->reply(__('Hello')); // Ciao!

Anyone can contribute to the supported languages by creating a folder in resources/lang, named after the translated language code and adding his own translation files (better if taken from the resources/lang/en folder)

Translation Credits

Suggest a change
Last updated 29 May 2026