chert chertopert
chert chertopert

Reputation: 197

How can i hide ReplyKeyboardMarkup in c#?

I want when user presses the keyboard markup button then hide that, create keyboard with this code:

Rkm_YesNo.Keyboard = new KeyboardButton[][]
{
    new KeyboardButton[]
    {
        new KeyboardButton("\U0000274C" + " " + "خیر"),
        new KeyboardButton("\U00002705" + " " + "بلی")
    }
};

and send that with this code:

await
Bot.SendTextMessageAsync(chatid, "در حال بررسی لطفا صبور باشید",false,false,0,rkm);

How can I hide that keyboard? Thanks.

Upvotes: 2

Views: 734

Answers (1)

Mohammad
Mohammad

Reputation: 2764

just set OneTimeKeyboard=true.

Upvotes: 2

Related Questions