EditMessage and change the replyMarkup type

Created by: greyfader

Hello... I'm trying to use the EditMessage to change the ReplyMarkup of a specific message from InlineKeyboardMarkup to ForceReply and vice versa. I've been trying to do it for some time and it continues to produce error. Attached a modified file of telegram.bot.example.echo.

Steps to reproduce

  1. Send "/inline"
  2. Send "/forcereply"
  3. Send text with the forced reply

Expected behavior

  1. When "/forcereply" received, previous inline keyboard would be gone
  2. When the user sends text within the forced reply, the keyboard can be used again

Actual behavior

Various Bad Requests Inline Keyboard expected object expected as reply markup

Environment data

Program.txt PS. I renamed the file extension to .txt so it's upload-able. Originally .cs file

NuGet Package Version: 10.4

.NET Version: 4.6.2

IDE: VS2015

App: general