Add variable bot privacy policy link + change config.env.example style
This commit is contained in:
parent
958a61ae11
commit
924ca1aae4
4 changed files with 15 additions and 7 deletions
|
@ -16,8 +16,9 @@ module.exports = (bot) => {
|
|||
|
||||
bot.command('privacy', spamwatchMiddleware, async (ctx) => {
|
||||
const Strings = getStrings(ctx.from.language_code);
|
||||
ctx.reply(
|
||||
Strings.botPrivacy, {
|
||||
const message = Strings.botPrivacy.replace("{botPrivacy}", process.env.botPrivacy);
|
||||
|
||||
ctx.reply(message, {
|
||||
parse_mode: 'Markdown',
|
||||
disable_web_page_preview: true,
|
||||
reply_to_message_id: ctx.message.message_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue