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 · 2 comments
Open

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

Kiura opened this issue Mar 14, 2024 · 2 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.

@bukhalo
Copy link
Member

bukhalo commented Jul 23, 2024

Could you provide a more in-depth example?

@Kiura
Copy link
Author

Kiura commented Jul 30, 2024

@bukhalo, unfortunately, I don't remember the details. I believe we can close the issue and keep it so others with the same issue know what to do when/if such issue occurs. To resolve the issue one simply needs to update refrect-metadata dependency

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

No branches or pull requests

2 participants