Y
Y
Yura Mailler2021-04-01 17:40:00
Yii
Yura Mailler, 2021-04-01 17:40:00

How to hide buttons in a VK bot and enable others?

Hello ! I am making a bot and a task has appeared that there is a button and when you click on it, it should hide and other buttons should appear instead. That is, let's say the "Menu" button and when pressed, it disappears and two new buttons appear, for example "Pizza", "Cat". How to do it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Fedorov, 2018-04-24
@qonand

But will it work correctly? Indeed, in the database, the date is of this format 2018-04-18 14:29:23

It all depends on the specific DBMS and its version. For example, in MySQL, for such a query, records for the last day of the interval will be ignored.
Convert date from output format to storage format

D
Dmitry, 2018-04-24
@slo_nik

Good afternoon.
Try like this
And it is better to store the date in a timestamp, then there will be no such problems.
Also in the input you can display the date in the desired format. You even need to adjust the date separator.
From the strtorime() documentation

Note:
Dates in the format m/d/y or dmy are disambiguated by parsing their element separators: if the separator is a slash (/), then the date is interpreted in the American format m/d/y, if the separator is a hyphen (-), or dot (.), then the use of the European dmy format is assumed.
To avoid potential ambiguity, it is recommended to use ISO 8601 (YYYY-MM-DD) dates, or use the DateTime::createFromFormat() function where possible.

K
kiryatpechin, 2021-04-05
@Yura111

I myself recently encountered this problem, you just need to write true in the one_time parameter, an idiotic way, VK themselves do not deny this
https://vk.com/faq14052

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question