Issue with Setting Preferences and Channel using Zammad API with 'X-On-Behalf-Of'

Hi @cc1998 ,

seems like because of the missing ticket.agent permissions you get forced into a note:

Looks a bit like that you have to patch that. You could also try to play around with the origin_by_id parameter of the article, maybe this gets you there as well:

curl -X POST "http://localhost:3000/api/v1/tickets" \
-H "Authorization: Bearer B0CkzmgED34OW90gZVrf1B8wtf5gd6RG5RK-xxxx" \
-H "Content-Type: application/json" \
-d '{
  "title": "Inquiry: test",
  "group": "Users",
  "customer_id": 2,
  "article": {
    "subject": "test",
    "body": "test",
    "type": "telegram personal-message",
    "sender": "Customer",
    "internal": false,
    "origin_by_id": 2
  },
  "preferences": {
    "channel": "telegram personal-message",
    "telegram": {
      "bid": "xxxxxxxtelegram-id",
      "chat_id": "123"
    }
  }
}'