Answer the question
In order to leave comments, you need to log in
How to write a value to a variable by sending a message to the telegram bot?
Here, tell me how to write a value to a variable or an array, for example:
$otvet = "";
if (strtolower($message) == 'записать слово') {
sendMsg($group_id, $otvet);
}
Answer the question
In order to leave comments, you need to log in
Solutions 2:
1) We send commands to the bot of the form
/write the word jiggurd
/write
the word jiggurd
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question