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

@Message decorator issue (typeorm/refrect-metadata related) #1174

Open
Kiura opened this issue Mar 14, 2024 · 0 comments
Open

@Message decorator issue (typeorm/refrect-metadata related) #1174

Kiura opened this issue Mar 14, 2024 · 0 comments

Comments

@Kiura
Copy link

Kiura commented Mar 14, 2024

Hi, thanks for the great library. One of the reasons I am using telegraf over grammy )

Basically, there is a weird issue with the decorator when combined with typeorm. Whenever I include typeorm, the message becomes this:

async (ctx = context) => {
	await execute(i + 1, ctx);
}

When I expect it to be string. After long hours of hunting the issue a colleague of mine found out the issue was related to refrect-metadata. Once the dependency was updated the issue was gone.

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

1 participant