Ejemplo n.º 1
0
 /// <summary>
 /// Edit the message that triggered the callback query.
 /// </summary>
 /// <param name="updateDto">The update with the callback query.</param>
 /// <param name="newText">The new text to replace the message text with.</param>
 /// <param name="replyMarkup">The keyboard to use.</param>
 private Task EditOriginalMessage(UpdateDto updateDto, string newText, InlineKeyboardMarkup replyMarkup)
 {
     return(_sendMessageService.EditMessageText(
                updateDto.Chat.Id,
                updateDto.ParsedBotMessageId.Value,
                newText,
                replyMarkup: replyMarkup));
 }