A
A
Alexander2018-06-25 18:07:35
PHP
Alexander, 2018-06-25 18:07:35

How to make an entry in mysql via php-telegram-bot php?

Good afternoon! Please help me, I am making a telegram bot with entering answers in Mysql.
Example scenario:
bot:
(inline button) enter data
\\user clicks
bot: enter first name
user: blablabla1
bot: enter second name
user: blablabla2
bot: enter third name
user: blablabla3
bot: you entered blablabla1, blablabla2, blablabla3
bot:
(inline button) enter data
How to make a sequential record in the database in different fields?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alekssamos, 2018-06-25
@alekssamos

Check: if h1 exists, then check h2. If h2 is, then check h3. If there is no h3, then write it down. And use chat id as a session
. Or make a separate state column, write the number of the current state there:
-1 button, 0 first name, 1 second name, etc.

bot:
(inline button) enter data

state=-1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question