Page MenuHomePhabricator

Telegram bot /search command
Closed, ResolvedPublic

Description

The /search command from the ☰ menu should open a web app that allows searching and choosing a Wikipedia article.

Once an article is selected,

  • a preview will be shown in the chat
  • the article sent to the recommendation engine to influence future recommendations
  • the account needs to be marked as "active" (it's OK if it was already active) for recommendations to start being sent the next day

REWORK

  • Add a /search command that outputs a message as well as the actual search button. Note that the search interface can only be launched by the search button and not from the search command in the menu.
  • The /start command has to exist so... find a relevant message to put there.
  • Investigate if we can alter the appearance of the search interface on mobile. Specifically how the textbox is light and everything else is very dark.

Related Objects

Event Timeline

PWaigi-WMF raised the priority of this task from High to Needs Triage.
PWaigi-WMF moved this task from Backlog to Definition on the Inuka-Team (Kanban) board.
SBisson renamed this task from Allow selecting starting point article in Telegram bot to Telegram bot /search command.Dec 6 2023, 9:16 PM
SBisson triaged this task as Medium priority.
SBisson raised the priority of this task from Medium to High.
SBisson updated the task description. (Show Details)

This works as expected. Dropping some comments related to the improvements of the task.

  • Can we fix some styles to increase the visibility of search interface?
WhatsApp Image 2024-01-04 at 17.24.53.jpeg (1×738 px, 33 KB)
  • Is it possible for us to include live search option? as currently it requires to press the enter button to see the search results.
  • A minor one, task description says "/search" command inside the menu whereas currently it says "Get started" instead of /search.
WhatsApp Image 2024-01-04 at 17.24.53 (1).jpeg (1×738 px, 67 KB)

cc: @PWaigi-WMF

This works as expected. Dropping some comments related to the improvements of the task.

  • Can we fix some styles to increase the visibility of search interface?

Looks like we cannot change it.

  • Is it possible for us to include live search option? as currently it requires to press the enter button to see the search results.

This appears to be a trick by your device. When I type, on my phone or computer, it searches "live", after every character.

  • A minor one, task description says "/search" command inside the menu whereas currently it says "Get started" instead of /search.

A telegram bot needs to have a /start command. It runs when the conversation with the bot starts and the user can re-run it via the menu. It serves as a "welcome" and/or "help" message. Let me know what you think we should put there.

I have added a /search command to the menu. Note that this command cannot launch the search feature. It can only create the inline button that launches the search. It's a 2-step process and I can't find a way around this.