Set portuguese language if user's telegram app is in portuguese
This commit is contained in:
parent
c86884774c
commit
e140b24deb
6 changed files with 23 additions and 5 deletions
|
@ -1,8 +1,9 @@
|
|||
const Strings = require('../locales/english.json');
|
||||
const { getStrings } = require('./checklang');
|
||||
const resources = require('../props/resources.json');
|
||||
|
||||
module.exports = (bot) => {
|
||||
bot.help((ctx) => {
|
||||
const Strings = getStrings(ctx.from.language_code);
|
||||
ctx.replyWithPhoto(
|
||||
resources.lynxFullPhoto, {
|
||||
caption: Strings.lynxHelp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue