I'd like to offer save users language_code and publish class with main logic for fast start #722
Replies: 2 comments 1 reply
-
|
Hi @VitalyEvrica . I don't understand the purpose of this request. The language_code is not related to the Chat but is related to the User. |
Beta Was this translation helpful? Give feedback.
-
Hi! So, when user intereacts with a bot, developer needs to save language preference. Also there is a chance that user's Telegram is in English but user wants to use bot in another language. Looking forward to hear your thoughts |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
HI,
Want to offer this to pull. Can I make pull request or you will handle it by yourself lately?
Telegramers are using different langs, so we can add language_code column to store the user’s language preferences:
database/migrations/create_telegraph_chats_table.phpsrc/Handlers/WebhookHandler.phphelpers/main.phpor put them to TeleGraphAndGramI also think programmers always add custom class to use Telegram, so
config/telegraph.php
Add to README this:
"
and we can publish it with command
"
Then make command working
src/TelegraphServiceProvider.phpsrc/Http/TeleGraphAndGram.phpI guess I not forgot anything) Please, let me know what do you think
Beta Was this translation helpful? Give feedback.
All reactions