W
W
WasTabon2021-04-16 20:37:52
C++ / C#
WasTabon, 2021-04-16 20:37:52

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

2 answer(s)
B
Boris the Animal, 2021-04-17
@WasTabon

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...

S
Sergey Karbivnichy, 2021-04-16
@hottabxp

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 question

Ask a Question

731 491 924 answers to any question