W
W
WasTabon2021-06-13 20:11:34
C++ / C#
WasTabon, 2021-06-13 20:11:34

Getting a response from the user?

Googled and found only code for python, or using a database

if (msg.Text == "Вход")
            {
                await client.SendTextMessageAsync(e.Message.Chat.Id, "Введите логин");
                if (msg.Text != "Вход")
                {
                    string strmsg = msg.ReplyToMessage.Text;
                    Console.WriteLine("123");
                    await client.SendTextMessageAsync(1111111, strmsg);
                }
            }

Here is my code, but it doesn't work (because the first condition is not true if (msg.Text == "Вход")

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question