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

cannot use request.Reaction (variable of type []tg.ReactionClass) as type string in assignment #21

Closed
sarff opened this issue Jan 29, 2023 · 2 comments

Comments

@sarff
Copy link

sarff commented Jan 29, 2023

HI.
Have "Compilation finished with exit code 2"
just tried running the example echo-bot

# github.com/anonyindian/gotgproto/ext
../../go/pkg/mod/github.com/anonyindian/gotgproto@v1.0.0-beta08/ext/context.go:174:14: cannot use request.Reaction (variable of type []tg.ReactionClass) as type string in assignment
@celestix
Copy link
Owner

celestix commented Jan 29, 2023

Hello! It's a known issue with the mismatched versioning of the dependencies, you can fix it with a temporary solution:
This has already been fixed in the beta branch, hence you can force go compiler download the latest branch instead of the latest released version of the package. Refer to following issue, which covers the same context:
https://github.com/anonyindian/gotgproto/issues/20#issuecomment-1399250506

It shall fix the issue you're facing, sorry for the inconvenience!

@sarff
Copy link
Author

sarff commented Jan 29, 2023

working thx

@sarff sarff closed this as completed Jan 29, 2023
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