[Feature Request] Support for "Send Typing" trigger from Bot Builder

Open
#70 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
api, backend

Research direction

Start in bootstrap.php and trace how the Generic Bot handles the Bot Builder's "Send Typing" event. Follow the existing Telegram request flow and determine where Longman\TelegramBot\Request::sendChatAction should be invoked; done means Telegram users see the typing status when that command runs.

Written by the indexing model from the issue text.

Description

enhancement

Hello, Remi!

I have configured a bot in the Bot Builder that uses the "Send Typing" trigger (to simulate that the operator/bot is thinking before sending a message).

Current behavior:
When the bot reaches the "Send Typing" step, the delay works (the bot waits), but the Telegram user does not see the "Typing..." status in the chat header. It works perfectly in the Web Widget, but not in Telegram.

Expected behavior:
When the Bot Builder executes the "Send Typing" command, the extension should send a sendChatAction request to the Telegram API so the user sees "typing..." status.

Technical details:
I checked bootstrap.php and didn't find a listener that handles the typing event from the Generic Bot.
It seems we need to implement Longman\TelegramBot\Request::sendChatAction when the bot triggers the typing command.

Could you please add support for this?

Environment:

  • LHC Version: Latest
  • Telegram Extension: Latest

Thank you for your great work!

Dominant language
PHP
Stars
59
Forks
36
Avg merge
6h 40m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LiveHelperChat/telegram

All issues in LiveHelperChat/telegram

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.