Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make an Inline Keyboard Button in Telegram Bot, directing to a URL C# [closed]

I haven't worked with Inline Keyboard buttons yet, I'd like to achieve that instead of sending a link to click on, I want to make an Inline Keyboard Button, that when the user presses the button it should automatically direct him to the URL given.

like image 451
Mayer Spitz Avatar asked Mar 09 '23 19:03

Mayer Spitz


1 Answers

It seems that this is what needed:

    InlineKeyboardButton urlButton = new InlineKeyboardButton();
        urlButton.Text = "Go URL";
        urlButton.Url = "https://google.com";
like image 61
Mayer Spitz Avatar answered Mar 11 '23 10:03

Mayer Spitz