Answer the question
In order to leave comments, you need to log in
How to shove a compiler into a telegram bot?
Let's say there are 10 buttons, each adds some function to the exe file, how can you make a choice of functions, then so that the user presses "OK" and an exe file with the selected functions is sent to him?
Answer the question
In order to leave comments, you need to log in
The links have code examples on how to compile on the fly. How to shove methods into source codes, etc. This is a different and rather simple question.
Dynamically compile and run code using .NET Core 3.0
Here is an example from Microsoft
Cross-Platform Code Generation with Roslyn and .NE...
You have, say, 10 exe-shnikov with different functions. The user clicks on the button with the desired functions, and the bot sends him an exe file with the necessary functions.
This is a logic puzzle from the first grade.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question