예제 #1
0
 public override void CreateInlineKeyboard()
 {
     GeneralCallbackData = new GeneralCallbackData
     {
         MessageKeyboardState = State
     };
     ButtonsInitializer();
     base.InlineKeyboard = DefineInlineKeyboard();
 }
예제 #2
0
        protected virtual InlineKeyboardButton InitButton(InlineKeyboardType type, string text, string command, bool forceCallbackData = true)
        {
            if (!forceCallbackData)
            {
                return(base.InitButton(type, text, command));
            }
            var callbackData = new GeneralCallbackData(GeneralCallbackData)
            {
                Command = command
            };

            return(base.InitButton(type, text, callbackData));
        }