Add variable bot privacy policy link + change config.env.example style

This commit is contained in:
Luquinhas 2025-04-15 01:06:50 -03:00
parent 958a61ae11
commit 924ca1aae4
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
4 changed files with 15 additions and 7 deletions

View file

@ -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