Ik probeer een afbeelding te sturen via NodeRED naar mijn telegram. Echter krijg ik telkens de volgende foutmelding:
...
De plugin die ik gebruik binnen nodered is https://flows.nodered.org/node/node-red-contrib-chatbot
...
In hun eigen documentatie staat de volgende opstelling als voorbeeld:

Dit heb ik dan gebruikt als basis en ben tot het volgende gekomen

De response die ik krijg op mijn debug node is de volgende:

Kan er mij iemand verder helpen?
...
code:
1
| "Error: ETELEGRAM: 400 Bad Request: there is no photo in the request" |
...
De plugin die ik gebruik binnen nodered is https://flows.nodered.org/node/node-red-contrib-chatbot
...
In hun eigen documentatie staat de volgende opstelling als voorbeeld:

Dit heb ik dan gebruikt als basis en ben tot het volgende gekomen

JSON:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
| [ { "id": "14f3997e.f7f527", "type": "debug", "z": "e5884a53.2f6b38", "name": "", "active": true, "console": "false", "complete": "true", "x": 890, "y": 200, "wires": [] }, { "id": "3f80b09c.31d64", "type": "chatbot-telegram-receive", "z": "e5884a53.2f6b38", "bot": "6fb93894.5b91f8", "x": 170, "y": 220, "wires": [ [ "92aabb30.f3d778" ] ] }, { "id": "92aabb30.f3d778", "type": "chatbot-command", "z": "e5884a53.2f6b38", "name": "", "command": "/snapshot", "x": 360, "y": 220, "wires": [ [ "f268013a.cd82c", "4d9bffef.4b771" ] ] }, { "id": "f268013a.cd82c", "type": "http request", "z": "e5884a53.2f6b38", "name": "test image", "method": "GET", "ret": "bin", "url": "http://wp.patheos.com.s3.amazonaws.com/blogs/faithwalkers/files/2013/03/bigstock-Test-word-on-white-keyboard-27134336.jpg", "tls": "", "x": 590, "y": 220, "wires": [ [ "ffa240b9.9cb01" ] ] }, { "id": "ffa240b9.9cb01", "type": "chatbot-image", "z": "e5884a53.2f6b38", "name": "", "filename": "", "image": "", "caption": "", "x": 750, "y": 220, "wires": [ [ "bac8f4a2.a6ccb8", "14f3997e.f7f527" ] ], "outputLabels": [ "Image" ] }, { "id": "bac8f4a2.a6ccb8", "type": "chatbot-telegram-send", "z": "e5884a53.2f6b38", "bot": "6fb93894.5b91f8", "track": false, "parseMode": "", "outputs": 0, "x": 930, "y": 240, "wires": [] }, { "id": "4d9bffef.4b771", "type": "chatbot-waiting", "z": "e5884a53.2f6b38", "waitingType": "upload_photo", "x": 660, "y": 260, "wires": [ [ "bac8f4a2.a6ccb8" ] ] }, { "id": "358d760a.1f18ca", "type": "inject", "z": "e5884a53.2f6b38", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": false, "x": 180, "y": 260, "wires": [ [ "86350ac.124cbf8" ] ] }, { "id": "86350ac.124cbf8", "type": "chatbot-conversation", "z": "e5884a53.2f6b38", "name": "", "chatId": "425552882", "transport": "telegram", "messageId": "", "contextMessageId": false, "x": 350, "y": 260, "wires": [ [ "f268013a.cd82c", "4d9bffef.4b771" ] ] }, { "id": "6fb93894.5b91f8", "type": "chatbot-telegram-node", "z": "", "botname": "xxx", "usernames": "xxx", "polling": "200", "log": "TelegramLog.log" } ] |
De response die ik krijg op mijn debug node is de volgende:

Kan er mij iemand verder helpen?
...
[ Voor 65% gewijzigd door Yoki1985 op 06-10-2017 20:44 ]