Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
S
stax_backend_api
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Aryan Noshirvani
  • stax_backend_api
  • Repository

Switch branch/tag
  • stax_backend_api
  • tests
  • test_telegram_sync.py
Find file
BlameHistoryPermalink
  • Aryan Noshirvnai's avatar
    Fix chat music scan crashing with "'str' object has no attribute 'value'" · 98dbaf27
    Aryan Noshirvnai authored Aug 18, 2026
    get_chat_music() called search_messages(filter="audio") - a plain
    string - but Pyrogram's filter param is a MessagesFilter enum and
    internally reads filter.value, so every chat scan crashed the moment
    a user tapped a chat. Use MessagesFilter.AUDIO instead. Added a unit
    test that mocks pyrogram.Client and asserts the exact enum is passed,
    since the existing router tests only mocked get_chat_music() itself
    and never exercised this line.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    98dbaf27
test_telegram_sync.py 1.91 KB
EditWeb IDE

Replace test_telegram_sync.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.