protected bool TryShowNext(ISession session, Message message) { if (KeyboardActionsManager.CheckNeeding(NeedNextButton, this.message.HaveReplyKeyboard, session, message, DefaultStrings.Next)) { SendNext(session); return(true); } else { return(false); } }
protected bool TryShowPrevious(ISession session, CallbackQuery callbackQuerry) { if (KeyboardActionsManager.CheckNeeding(NeedPreviousButton, message.HaveInlineKeyboard, session, callbackQuerry, DefaultStrings.Previous, () => ButtonIdManager.GetIDFromCallbackData(callbackQuerry.Data) == Id)) { SendPrevious(session, callbackQuerry.Message); return(true); } else { return(false); } }