You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm struggling to access an image attachment. Theres nothing in the example so I reviewed the message unit test and I see they are accessing context.message.attachments_local_filenames[0]. But when I try to access it I get an error that it doesn't exist. Any tips?
INFO:root:[Raw Message] {"envelope":{"source":"+<snip>","sourceNumber":"<snip>","sourceUuid":"<snip>","sourceName":"Kevin","sourceDevice":1,"timestamp":1738827889547,"serverReceivedTimestamp":1738827899253,"serverDeliveredTimestamp":1738827899254,"dataMessage":{"timestamp":1738827889547,"message":"Stop","expiresInSeconds":0,"viewOnce":false,"attachments":[{"contentType":"image/jpeg","filename":null,"id":"n_mhLABBAI_ol9OG_ab6.jpg","size":94059,"width":1024,"height":1051,"caption":null,"uploadTimestamp":1738827891130}]}},"account":"<snip>"} botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00071 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00091 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00135 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00168 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00202 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00240 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00277 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00305 seconds botty_1 | INFO:root:[StopCommand()] stop triggered botty_1 | ERROR:root:[StopCommand] Error: 'Message' object has no attribute 'attachments_local_filenames' signal-cli-rest-api_1 | [GIN] 2025/02/06 - 07:45:01 | 204 | 1.205244521s | 192.168.224.3 | PUT "/v1/typing-indicator/<snip>"
The text was updated successfully, but these errors were encountered:
just realized that pip installed 0.10 and the base64 attachments code was added in 0.11. pip install signalbot --upgrade doesn't fix it -- still shows v0.10. Any idea how I force pip to take the latest release?
I'm struggling to access an image attachment. Theres nothing in the example so I reviewed the message unit test and I see they are accessing context.message.attachments_local_filenames[0]. But when I try to access it I get an error that it doesn't exist. Any tips?
INFO:root:[Raw Message] {"envelope":{"source":"+<snip>","sourceNumber":"<snip>","sourceUuid":"<snip>","sourceName":"Kevin","sourceDevice":1,"timestamp":1738827889547,"serverReceivedTimestamp":1738827899253,"serverDeliveredTimestamp":1738827899254,"dataMessage":{"timestamp":1738827889547,"message":"Stop","expiresInSeconds":0,"viewOnce":false,"attachments":[{"contentType":"image/jpeg","filename":null,"id":"n_mhLABBAI_ol9OG_ab6.jpg","size":94059,"width":1024,"height":1051,"caption":null,"uploadTimestamp":1738827891130}]}},"account":"<snip>"} botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00071 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00091 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00135 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00168 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00202 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00240 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00277 seconds botty_1 | INFO:root:[Bot] Consumer #1 got new job in 0.00305 seconds botty_1 | INFO:root:[StopCommand()] stop triggered botty_1 | ERROR:root:[StopCommand] Error: 'Message' object has no attribute 'attachments_local_filenames' signal-cli-rest-api_1 | [GIN] 2025/02/06 - 07:45:01 | 204 | 1.205244521s | 192.168.224.3 | PUT "/v1/typing-indicator/<snip>"
The text was updated successfully, but these errors were encountered: