-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
IntegrationInstance Exception When Running Telegram Button Component #28403
Comments
not a bug. |
Where should I go for help, please? |
The UI components are not really meant to be used outside of TDesktop. Or, in other words, you need to perform a_lot of work for the widget system to start working in another application. The fairly minimum example can be found in a ui-test-application wrap: |
Thanks for your answer.
|
May I ask what the main purpose of Integration is? For example, in Telegram, what are BaseIntegration and UiIntegration used for? Is there a necessary connection between them and the functioning of the animations in Telegram's components? |
Well, this is the way to provide some required code from the client app back to the library level again. |
Steps to reproduce
Hello, I would like to try running the Telegram button component separately in a Twidget. So, I wrote the following code in the main function:
Here is the result of the execution:
I noticed that there is no button shape at all, just a bar-like object.
When my mouse pointer touches this bar-like object, the program crashes with a null pointer exception. The IDE indicates that the exception is occurring at this point: IntegrationInstance.
May I ask what causes this?
Looking forward to your reply, I appreciate it very much!!!!!!!!!!!
Expected behaviour
thank you
Actual behaviour
thank you
Operating system
MAC os. M3
Version of Telegram Desktop
new
Installation source
Static binary from official website
Crash ID
thank you
Logs
thank youthank youthank youthank youthank you!
The text was updated successfully, but these errors were encountered: