protected void ReplyMarkup_ButtonClick(object sender, ReplyMarkupButtonClickEventArgs e) { if (ViewModel is TLMessage message) { Context?.KeyboardButtonExecute(e.Button, message); } }
private void ReplyMarkup_ButtonClick(object sender, ReplyMarkupButtonClickEventArgs e) { ViewModel.KeyboardButtonExecute(e.Button, null); }
protected void ReplyMarkup_ButtonClick(object sender, ReplyMarkupButtonClickEventArgs e) { Context?.KeyboardButtonExecute(e.Button, ViewModel); }