我想更改 botman 聊天机器人小部件内按钮的颜色。
这是代码:
$question = Question::create('Hi, I am virutal assistant. How can i help today?')
->callbackId('select_service')
->addButtons([
Button::create('I am waiting to bid on the property')->value('Bid')->additionalParameters(
['background' => 'red !important',
'color' => 'negative']
),
Button::create('I would like to watch the auction and be
notified when the auction starts')->value('Spa'),
Button::create('I would like the auction results sent to me')->value('Beauty'),
Button::create('I am interesting in selling my house and would like to see
what the market is doing')->value('Beauty'),
Button::create('I am looking to purchase a property')->value('Beauty'),
]);
您可以更改或覆盖 css,例如如下所示: .btn{背景颜色:#9261b7;}