I wanna set a a keyboard that sends a "1"

keyboard and a "2" keybord,, also ... another keyboard that does the same ... ( sending "1" and "2" keyboard ) .. how will i know which keyboard generated those numbers ?

17 ответов

26 просмотров
𝘼𝙗𝙙𝙤-🧢 Автор вопроса

another example is that ... i wanna send a keyboard which sends multiple documents .... each document has chatptre 1 , chaptre 2 ... soo how will i know which chapter to send ?

Inline keyboard buttons have a display value and a data value. So you can just use different data for the second inline keyboard.

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
Quad
Inline keyboard buttons have a display value and a...

alright , but the normal keyboard , no ?

𝘼𝙗𝙙𝙤-🧢 Автор вопроса

yeap

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
ッ Marshmallow 🎀 ❦ ᵐⁱˢˢ Σ ᶜᵒˡˡᵉᵍⁱᵃⁿ ᵃⁿᵈ ᵍᵃᵐᵉʳ 👱🏻‍♀ 🦋²⁰²²ᵗʰ 🎀 🧞‍♀️×͜×
You want change the keyboard with new one after ch...

yes , and this one is the same for all keyboard in therme of the name.. but generates differente data according to the last keyboard clicked

𝘼𝙗𝙙𝙤 🧢
yeap

Last time I checked (several years ago) the only possibility was to save on your side, what the last keyboard for the user was.

𝘼𝙗𝙙𝙤-🧢 Автор вопроса
𝘼𝙗𝙙𝙤-🧢 Автор вопроса
ッ Marshmallow 🎀 ❦ ᵐⁱˢˢ Σ ᶜᵒˡˡᵉᵍⁱᵃⁿ ᵃⁿᵈ ᵍᵃᵐᵉʳ 👱🏻‍♀ 🦋²⁰²²ᵗʰ 🎀 🧞‍♀️×͜×
What's mean different data here?

imagine your studying at an university ... it has multiple courses .... each course has chaptre 1 , chaptre 2 .... your bot in the end will receive the keyword " chaptre X " .. how will it know which chaptre of which courses to send ? .. does telegram sends the " last clicked keyboard " clicked or any other way to know the precedent data .. that was my question but thanks i wil check api

𝘼𝙗𝙙𝙤-🧢 Автор вопроса

ok thx

Похожие вопросы

Карта сайта