Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use ReplyKeyboardMarkup MrRobin ? #4

Closed
NaderSetarei opened this issue Jul 7, 2015 · 1 comment
Closed

how to use ReplyKeyboardMarkup MrRobin ? #4

NaderSetarei opened this issue Jul 7, 2015 · 1 comment

Comments

@NaderSetarei
Copy link

var rkm = new ReplyKeyboardMarkup
{
Keyboard = new[] { new[] { "cmd1", "/cmd1" }, new[] { "cmd2", "/cmd2" } }
};

whats the next step ?

@MrRoundRobin
Copy link
Member

var keyboardMarkup = new ReplyKeyboardMarkup
{
    Keyboard = new[]
    {
        new[] // row 1
        {
            "cmd1",
            "cmd2"
        },
        new[] // row 2
        {
            "cmd3",
            "cmd4"
        }
    },
    ResizeKeyboard = true
};

await Bot.SendTextMessage(update.Message.Chat.Id, "Question?", false, 0, keyboardMarkup);
//or
await Bot.SendPhoto(update.Message.Chat.Id, "<photo_id>", "Nice Pic", false, 0, keyboardMarkup);

tuscen pushed a commit that referenced this issue Feb 18, 2022
Add bot client as a parameter to IUpdateHandler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants