コード例 #1
0
 private IEnumerable <IReply> GetReplies(TelegramMessageEventArgs input)
 {
     yield return(new ButtonsReply("Это кнопки", BotHelper.BuildKeyboard(BotHelper.BuildButtonsRow("ролл", "Вторая"), BotHelper.BuildButtonsRow("Третья"))));
     //yield return new TextReply(input.Message.Text.Replace("ест", "хуест"));
     //yield return new ImageReply(File.ReadAllBytes(@"C:\Users\bashis\Desktop\photo_2017-02-08_14-48-48.jpg"));
 }