-
-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to trace user position #14
Comments
You need someway ti store the state of a chat, like a database. |
ok thank you for your guidance , just something else : i don't know what part On May 28 2016, at 11:52 am, Gabriele Grillo <notifications@github.com>
|
Well, there are many ways. if (user_choosed_button() == "Back") {
$prev_key = take_previuos_keyboard_from_db();
if ($prev_key == "TWO") {
sendKeyboardONE();
}
if ($prev_key == "THREE") {
sendKeyboardTWO();
}
} It's simple but a little messy if you have a lot of different keyboards to show, but it's a starting point. |
can you write a source code ? :( |
It's not a function of the Telegram's Bot API, so I'll not write a source code :-) |
Hi @Eleirbag89 . |
hi
i want to know how can i trace user position in the chat via my bot.
my bot have several keyboard i want to add a back button for each keyboard .
but i don't know how to do that
The text was updated successfully, but these errors were encountered: