It is necessary to create several rows of keyboard buttons with different numbers in the row for the Telegram. How to make one row is understandable, but I don’t understand how to make several rows of this with a controlled number of buttons in a row.

  msg.SuggestedActions = new SuggestedActions() { Actions = new List<CardAction>() { new CardAction(){ Title = "Пользователь", Type=ActionTypes.ImBack, Value="Пользователь" }, new CardAction(){ Title = "Сервера", Type=ActionTypes.ImBack, Value="Сервера" }, new CardAction(){ Title = "Сеть", Type=ActionTypes.ImBack, Value="Сеть" }, new CardAction(){ Title = "Консультант", Type=ActionTypes.ImBack, Value="Консультант" } } }; 
  • Keyboards in telegrams are arrays of arrays, maybe this is the problem? The code would be shown or what is there - Anatol
  • @Anatol msg.SuggestedActions = new SuggestedActions() { Actions = new List<CardAction>() { new CardAction(){ Title = "Пользователь", Type=ActionTypes.ImBack, Value="Пользователь" }, new CardAction(){ Title = "Сервера", Type=ActionTypes.ImBack, Value="Сервера" }, new CardAction(){ Title = "Сеть", Type=ActionTypes.ImBack, Value="Сеть" }, new CardAction(){ Title = "Консультант", Type=ActionTypes.ImBack, Value="Консультант" } } }; - Alexander Kaplun
  • Add the code to the question, the same unreadable - Anatol
  • @Anatol added - Alexander Kaplun
  • What does this code do? - Anatol

0