Make an inline keyboard in Telegram Bot, directing to C # url

I have not worked with Inline Keyboard buttons yet, I would like to achieve this, instead of submitting a link to click, I want to make an inline keyboard button, when the user clicks the button, it should automatically direct it to the specified URL.

+3


source to share


1 answer


This seems to be necessary:



    InlineKeyboardButton urlButton = new InlineKeyboardButton();
        urlButton.Text = "Go URL";
        urlButton.Url = "https://google.com";

      

+5


source







All Articles