User sends /new_items command. Bot returns five items with paging marker /new-items 5. Clicking on it transmits the full command (with its value) to load subsequent results.
hey, try using inline keyboard callback_data. when usr clicks, it sends the full command (including its value) to your bot. i found this method more cleaner and interactive for handling commands.
Based on my experience, an alternative implementation involves utilizing Telegram’s deep linking mechanism to trigger commands. This means you embed the command and its associated value directly into a URL that points to your bot, such as Telegram: Contact @YourBot. Once a user clicks this link and restarts the bot, you can parse the start parameter to extract the command and attached value. It is crucial that your bot’s initial message handler is designed to handle these parameters properly. I found that this approach offers flexibility and integrates smoothly with the bot’s command processing logic.