search_messages_in_chatSearch messages within a specific Telegram chat.
FEATURES:
- Multiple queries: "term1, term2, term3"
- Date filtering: ISO format (min_date="2024-01-01")
- Total count support for per-chat searches
SEARCH LIMITATIONS:
- NO wildcards: "proj*", "meet%" won't work
- NO regex: "^project", "deadline$" won't work
- Use simple terms: "proj" finds "project", "projects"
- Case insensitive: "DEADLINE" finds "deadline"
EXAMPLES:
search_messages_in_chat(chat_id="me", limit=10) # Latest messages (no query)
search_messages_in_chat(chat_id="-1001234567890", query="launch") # Specific chat
search_messages_in_chat(chat_id="telegram", query="update, news") # Multi-term search
search_messages_in_chat(chat_id="me", query="proj") # Partial word search
Args:
chat_id: Target chat ('me', ID, username, or -100... channel ID)
query: Optional search term(s). If omitted, returns latest messages.
limit: Max results
min_date: Min date (YYYY-MM-DD)
max_date: Max date (YYYY-MM-DD)
auto_expand_batches: Extra batches for filtered results
include_total_count: Include total matching count