An example of the implementation of bot telegrams in C#.
Create a config file.json with the following content
{
"BOT_TOKEN":"{yourtoken}"
}
And replace {yourtoken} with your bot's token
The files are arranged as follows:
- Initializing the bot and launching long polling.
- A router for any interactions with the bot. Messages first of all get there, and then they are distributed by actions
- The logic of your messages and responses