send message. How do I know what section belongs the message?
inline buttons orqali yasaysiz. buttondagi callback ga kerakli belgilarni joylab qoysa boladi
For example, if user send a income command bot works with incomes and user sends his incomes as text and if it is expense command user writes expenses. How to know what user sent: income or expense
You save information about the command. For example to a file or a database.
So, if previous update(here-command) == (desired one) then ... ?
Not exactly. The previous update may contain a message from another chat.
How to do it if I cannot know the previous update from exact chat? Example. Botfather ask botname and username when you create. Where it knows what I sent, botname or username?
Python
You can store the needed information in a dict and use the chat id as key.
Обсуждают сегодня