public virtual void OnButtonClick(BaseChat chat, User user, KeyboardButtonPayload payload) { if (!OnButtonClick(new ButtonClickEventArgs(chat, user, payload))) { return; } chat.InvokeButton(user, payload); }
public virtual void OnButtonClick(BaseChat chat, User user, string message, KeyboardButtonPayload payload, Message messageData) { if (!OnButtonClick(new ButtonClickEventArgs(chat, user, message, payload, messageData))) { return; } chat.InvokeButton(user, payload); }