-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add message_thread_id to telegram_text and telegram_command events #35785
base: next
Are you sure you want to change the base?
Conversation
It seems that this PR is targeted against an incorrect branch. Documentation updates which apply to our current stable release should target the |
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe changes made to the Telegram bot integration documentation in Home Assistant include the introduction of the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TelegramBot
participant HomeAssistant
User->>HomeAssistant: Send message
HomeAssistant->>TelegramBot: Send message with message_thread_id
TelegramBot->>User: Message sent to specific thread
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
source/_integrations/telegram_bot.markdown (1)
Line range hint
1-1000
: Consider adding a usage example for message_thread_id.To help users understand how to use the new
message_thread_id
attribute, consider adding a practical example in the Configuration samples section. This could demonstrate sending a message to a specific thread.Here's a suggested example to add:
# Example: send message to a specific thread actions: - action: notify.telegram data: message: "This message will appear in a specific thread" data: message_thread_id: 123456
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
source/_integrations/telegram_bot.markdown
(2 hunks)
🔇 Additional comments (2)
source/_integrations/telegram_bot.markdown (2)
316-317
: LGTM: Event data documentation is clear and consistent.
The addition of the message_thread_id
attribute to both telegram_command
and telegram_text
event data sections is well-documented and follows the existing format.
Also applies to: 329-330
Line range hint 1-1000
: LGTM: Action definitions are thoroughly documented.
The message_thread_id
attribute has been consistently added to all relevant action definitions with clear descriptions and proper optional status marking.
Proposed change
Add message_thread_id to telegram_text and telegram_command events
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit
New Features
message_thread_id
attribute for managing threaded conversations in Telegram bot actions.Documentation
message_thread_id
attribute.