Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable is not passed to the body #56

Open
Atashik opened this issue Nov 27, 2024 · 1 comment
Open

Variable is not passed to the body #56

Atashik opened this issue Nov 27, 2024 · 1 comment

Comments

@Atashik
Copy link

Atashik commented Nov 27, 2024

When i pass from.id the link was not shown up, but when i hard code some numbers instead of variable it works:

start-play = <a href="https://t.me/SomeBot?start={$fromid}">Start bot with custom id</a> <b>Welcome</b> <b>get some goods</b>

await ctx.reply(ctx.t('start-play',{fromid: ctx.from.id),{ parse_mode: 'HTML', });

@dcdunkan
Copy link
Member

Please see the "Potential Formatting Issues" section, right below this:

https://grammy.dev/plugins/i18n#global-placeables

You need useIsolating set to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants