iobroker.telegram 1.12.6 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -297
- package/admin/i18n/de/translations.json +4 -2
- package/admin/i18n/en/translations.json +3 -1
- package/admin/i18n/es/translations.json +3 -1
- package/admin/i18n/fr/translations.json +3 -1
- package/admin/i18n/it/translations.json +3 -1
- package/admin/i18n/nl/translations.json +3 -1
- package/admin/i18n/pl/translations.json +3 -1
- package/admin/i18n/pt/translations.json +3 -1
- package/admin/i18n/ru/translations.json +3 -1
- package/admin/i18n/zh-cn/translations.json +6 -4
- package/admin/jsonConfig.json +305 -0
- package/admin/jsonCustom.json +12 -12
- package/admin/rules/__federation_expose_ActionTelegram.js +115 -0
- package/admin/rules/__federation_expose_ActionTelegram.js.map +1 -0
- package/admin/rules/__federation_fn_import.js +48 -0
- package/admin/rules/__federation_fn_import.js.map +1 -0
- package/admin/rules/customRuleBlocks.js +45 -0
- package/admin/rules/customRuleBlocks.js.map +1 -0
- package/admin/rules/i18n/de.json +8 -0
- package/admin/rules/i18n/en.json +8 -0
- package/admin/rules/i18n/es.json +8 -0
- package/admin/rules/i18n/fr.json +8 -0
- package/admin/rules/i18n/it.json +8 -0
- package/admin/rules/i18n/nl.json +8 -0
- package/admin/rules/i18n/pl.json +8 -0
- package/admin/rules/i18n/pt.json +8 -0
- package/admin/rules/i18n/ru.json +8 -0
- package/admin/rules/i18n/zh-cn.json +8 -0
- package/admin/rules/index.1b54bc75.js +44 -0
- package/admin/rules/index.1b54bc75.js.map +1 -0
- package/admin/rules/preload-helper.1c052cf7.js +41 -0
- package/admin/rules/preload-helper.1c052cf7.js.map +1 -0
- package/admin/words.js +82 -98
- package/io-package.json +53 -31
- package/lib/adapter-config.d.ts +17 -0
- package/main.js +5 -48
- package/package.json +32 -9
- package/admin/custom_m.html +0 -335
- package/admin/index_m.html +0 -462
- package/lib/tools.js +0 -99
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ User must be authenticated before.
|
|
|
33
33
|
|
|
34
34
|
You can specify user in that way too:
|
|
35
35
|
|
|
36
|
-
```
|
|
36
|
+
```javascript
|
|
37
37
|
sendTo('telegram', {user: 'UserName', text: 'Test message'}, function (res) {
|
|
38
38
|
console.log('Sent to ' + res + ' users');
|
|
39
39
|
});
|
|
@@ -47,20 +47,20 @@ For example: Recipient: "User1,User4,User5"
|
|
|
47
47
|
|
|
48
48
|
You can send message over state too, just set state *"telegram.INSTANCE.communicate.response"* with value *"@userName Test message"* or with a JSON object:
|
|
49
49
|
|
|
50
|
-
```
|
|
50
|
+
```json
|
|
51
51
|
{
|
|
52
|
-
text: "Test message"
|
|
52
|
+
"text": "Test message"
|
|
53
53
|
}
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
The JSON syntax also allows the adding options from the [telegram bots API](https://core.telegram.org/bots/api), as well as setting the user or chatId:
|
|
57
57
|
|
|
58
|
-
```
|
|
58
|
+
```json
|
|
59
59
|
{
|
|
60
|
-
text: "Test message, but with *bold*",
|
|
61
|
-
parse_mode: "Markdown",
|
|
62
|
-
chatId: "1234567890",
|
|
63
|
-
user: "UserName"
|
|
60
|
+
"text": "Test message, but with *bold*",
|
|
61
|
+
"parse_mode": "Markdown",
|
|
62
|
+
"chatId": "1234567890",
|
|
63
|
+
"user": "UserName"
|
|
64
64
|
}
|
|
65
65
|
```
|
|
66
66
|
|
|
@@ -79,7 +79,7 @@ To send a photo, just send a path to file instead of text or URL: `sendTo('teleg
|
|
|
79
79
|
|
|
80
80
|
Example how to send a screenshot from web-cam to telegram:
|
|
81
81
|
|
|
82
|
-
```
|
|
82
|
+
```javascript
|
|
83
83
|
var request = require('request');
|
|
84
84
|
var fs = require('fs');
|
|
85
85
|
|
|
@@ -123,7 +123,7 @@ In this case the action command will be sent.
|
|
|
123
123
|
|
|
124
124
|
The description for telegram API can be found [here](https://core.telegram.org/bots/api) and you can use all options defined in this api, just by including that into send object. E.g.:
|
|
125
125
|
|
|
126
|
-
```
|
|
126
|
+
```javascript
|
|
127
127
|
sendTo('telegram.0', {
|
|
128
128
|
text: '/tmp/snap.jpg',
|
|
129
129
|
caption: 'Snapshot',
|
|
@@ -146,7 +146,7 @@ Adapter tries to detect the type of message (photo, video, audio, document, stic
|
|
|
146
146
|
|
|
147
147
|
Location will be detected on attribute latitude:
|
|
148
148
|
|
|
149
|
-
```
|
|
149
|
+
```javascript
|
|
150
150
|
sendTo('telegram.0', {
|
|
151
151
|
latitude: 52.522430,
|
|
152
152
|
longitude: 13.372234,
|
|
@@ -159,7 +159,7 @@ You have the possibility to define extra the type of the message in case you wan
|
|
|
159
159
|
|
|
160
160
|
Following types are possible: *sticker*, *video*, *document*, *audio*, *photo*.
|
|
161
161
|
|
|
162
|
-
```
|
|
162
|
+
```javascript
|
|
163
163
|
sendTo('telegram.0', {
|
|
164
164
|
text: fs.readFileSync('/opt/path/picture.png'),
|
|
165
165
|
type: 'photo'
|
|
@@ -169,7 +169,7 @@ sendTo('telegram.0', {
|
|
|
169
169
|
### Keyboard
|
|
170
170
|
You can show keyboard **ReplyKeyboardMarkup** in the client:
|
|
171
171
|
|
|
172
|
-
```
|
|
172
|
+
```javascript
|
|
173
173
|
sendTo('telegram.0', {
|
|
174
174
|
text: 'Press button',
|
|
175
175
|
reply_markup: {
|
|
@@ -187,7 +187,7 @@ You can read more [here](https://core.telegram.org/bots/api#replykeyboardmarkup)
|
|
|
187
187
|
|
|
188
188
|
You can show keyboard **InlineKeyboardMarkup** in the client:
|
|
189
189
|
|
|
190
|
-
```
|
|
190
|
+
```javascript
|
|
191
191
|
sendTo('telegram', {
|
|
192
192
|
user: user,
|
|
193
193
|
text: 'Click the button',
|
|
@@ -207,8 +207,8 @@ You can read more [here](https://core.telegram.org/bots/api#inlinekeyboardmarkup
|
|
|
207
207
|
### answerCallbackQuery
|
|
208
208
|
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, *True* is returned.
|
|
209
209
|
|
|
210
|
-
```
|
|
211
|
-
if (command ===
|
|
210
|
+
```javascript
|
|
211
|
+
if (command === '1_2') {
|
|
212
212
|
sendTo('telegram', {
|
|
213
213
|
user: user,
|
|
214
214
|
answerCallbackQuery: {
|
|
@@ -225,7 +225,7 @@ You can read more [here](https://github.com/yagop/node-telegram-bot-api/blob/rel
|
|
|
225
225
|
You can send to telegram the message and the next answer will be returned in callback.
|
|
226
226
|
Timeout can be set in configuration and by default is 60 seconds.
|
|
227
227
|
|
|
228
|
-
```
|
|
228
|
+
```javascript
|
|
229
229
|
sendTo('telegram.0', 'ask', {
|
|
230
230
|
user: user, // optional
|
|
231
231
|
text: 'Are you sure?',
|
|
@@ -244,7 +244,9 @@ sendTo('telegram.0', 'ask', {
|
|
|
244
244
|
## Chat ID
|
|
245
245
|
From version 0.4.0 you can use chat ID to send messages to chat.
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
```javascript
|
|
248
|
+
sendTo('telegram.0', {text: 'Message to chat', chatId: 'SOME-CHAT-ID-123');
|
|
249
|
+
```
|
|
248
250
|
|
|
249
251
|
## Updating messages
|
|
250
252
|
The following methods allow you to change an existing message in the message history instead of sending a new one with a result of an action. This is most useful for messages with *inline keyboards* using callback queries, but can also help reduce clutter in conversations with regular chat bots.
|
|
@@ -252,8 +254,8 @@ The following methods allow you to change an existing message in the message his
|
|
|
252
254
|
### editMessageText
|
|
253
255
|
Use this method to edit text sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise *True* is returned.
|
|
254
256
|
|
|
255
|
-
```
|
|
256
|
-
if (command ===
|
|
257
|
+
```javascript
|
|
258
|
+
if (command === '1_2') {
|
|
257
259
|
sendTo('telegram', {
|
|
258
260
|
user: user,
|
|
259
261
|
text: 'New text before buttons',
|
|
@@ -275,8 +277,8 @@ if (command === "1_2") {
|
|
|
275
277
|
|
|
276
278
|
*or new text for last message:*
|
|
277
279
|
|
|
278
|
-
```
|
|
279
|
-
if (command ===
|
|
280
|
+
```javascript
|
|
281
|
+
if (command === '1_2') {
|
|
280
282
|
sendTo('telegram', {
|
|
281
283
|
user: user,
|
|
282
284
|
text: 'New text message',
|
|
@@ -296,8 +298,8 @@ You can read more [here](https://github.com/yagop/node-telegram-bot-api/blob/rel
|
|
|
296
298
|
Use this method to edit caption of the message sent by the bot or via the bot (for inline bots).
|
|
297
299
|
On success, if edited message is sent by the bot, the edited Message is returned, otherwise *True* is returned.
|
|
298
300
|
|
|
299
|
-
```
|
|
300
|
-
if (command ===
|
|
301
|
+
```javascript
|
|
302
|
+
if (command === '1_2') {
|
|
301
303
|
sendTo('telegram', {
|
|
302
304
|
user, // optional
|
|
303
305
|
text: 'New caption',
|
|
@@ -317,8 +319,8 @@ You can read more [here](https://github.com/yagop/node-telegram-bot-api/blob/rel
|
|
|
317
319
|
Use this method to edit picture of the message sent by the bot or via the bot (for inline bots).
|
|
318
320
|
On success, if edited message is sent by the bot, the edited Message is returned, otherwise *True* is returned.
|
|
319
321
|
|
|
320
|
-
```
|
|
321
|
-
if (command ===
|
|
322
|
+
```javascript
|
|
323
|
+
if (command === '1_2') {
|
|
322
324
|
sendTo('telegram', {
|
|
323
325
|
user, // optional
|
|
324
326
|
text: 'picture.jpg',
|
|
@@ -339,8 +341,8 @@ You can read more [here](https://core.telegram.org/bots/api#editmessagemedia).
|
|
|
339
341
|
### editMessageReplyMarkup
|
|
340
342
|
Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise *True* is returned.
|
|
341
343
|
|
|
342
|
-
```
|
|
343
|
-
if (command ===
|
|
344
|
+
```javascript
|
|
345
|
+
if (command === '1_2') {
|
|
344
346
|
sendTo('telegram', {
|
|
345
347
|
user: user,
|
|
346
348
|
text: 'New text before buttons',
|
|
@@ -367,8 +369,8 @@ Use this method to delete a message, including service messages, with the follow
|
|
|
367
369
|
- A message can only be deleted if it was sent less than 48 hours ago.
|
|
368
370
|
Returns *True* on success.
|
|
369
371
|
|
|
370
|
-
```
|
|
371
|
-
if (command ===
|
|
372
|
+
```javascript
|
|
373
|
+
if (command === 'delete') {
|
|
372
374
|
sendTo('telegram', {
|
|
373
375
|
user: user,
|
|
374
376
|
deleteMessage: {
|
|
@@ -391,7 +393,7 @@ Suppose you are using only JavaScript without *text2command*. You already sent a
|
|
|
391
393
|
- user is the user registered with you TelegramBot which sent the message
|
|
392
394
|
- command is the command your TelegramBot received
|
|
393
395
|
|
|
394
|
-
```
|
|
396
|
+
```javascript
|
|
395
397
|
on({id: 'telegram.0.communicate.request', change: 'any'}, function (obj) {
|
|
396
398
|
var stateval = getState('telegram.0.communicate.request').val; // save Statevalue received from your Bot
|
|
397
399
|
var user = stateval.substring(1,stateval.indexOf("]")); // extract user from the message
|
|
@@ -462,13 +464,13 @@ Thanks to [callmebot](https://www.callmebot.com/) api, you can make a call to yo
|
|
|
462
464
|
|
|
463
465
|
To do that from javascript adapter just call:
|
|
464
466
|
|
|
465
|
-
```
|
|
467
|
+
```javascript
|
|
466
468
|
sendTo('telegram.0', 'call', 'Some text');
|
|
467
469
|
```
|
|
468
470
|
|
|
469
471
|
or
|
|
470
472
|
|
|
471
|
-
```
|
|
473
|
+
```javascript
|
|
472
474
|
sendTo('telegram.0', 'call', {
|
|
473
475
|
text: 'Some text',
|
|
474
476
|
user: '@Username', // optional and the call will be done to the first user in telegram.0.communicate.users.
|
|
@@ -479,7 +481,7 @@ sendTo('telegram.0', 'call', {
|
|
|
479
481
|
|
|
480
482
|
or
|
|
481
483
|
|
|
482
|
-
```
|
|
484
|
+
```javascript
|
|
483
485
|
sendTo('telegram.0', 'call', {
|
|
484
486
|
text: 'Some text',
|
|
485
487
|
users: ['@Username1', '+49xxxx'] // Array of `users' or telephone numbers.
|
|
@@ -488,7 +490,7 @@ sendTo('telegram.0', 'call', {
|
|
|
488
490
|
|
|
489
491
|
or
|
|
490
492
|
|
|
491
|
-
```
|
|
493
|
+
```javascript
|
|
492
494
|
sendTo('telegram.0', 'call', {
|
|
493
495
|
file: 'url of mp3 file that is accessible from internet',
|
|
494
496
|
users: ['@Username1', '@Username2'] // Array of `users' or telephone numbers.
|
|
@@ -688,7 +690,8 @@ For simple text messages to all users, just put the text within the payload of t
|
|
|
688
690
|
send it to the ioBroker state `telegram.INSTANCE.communicate.response`.
|
|
689
691
|
|
|
690
692
|
If you want to set additional options, fill the payload with a JSON object, such as:
|
|
691
|
-
|
|
693
|
+
|
|
694
|
+
```javascript
|
|
692
695
|
msg.payload = {
|
|
693
696
|
// text is the only mandatory field here
|
|
694
697
|
"text": "*bold _italic bold ~italic bold strikethrough~ __underline italic bold___ bold*",
|
|
@@ -698,14 +701,18 @@ msg.payload = {
|
|
|
698
701
|
"parse_mode": "MarkdownV2"
|
|
699
702
|
}
|
|
700
703
|
```
|
|
704
|
+
|
|
701
705
|
Before sending it to `telegram.INSTANCE.communicate.responseJson you need to stringify the object!`
|
|
702
706
|
|
|
707
|
+
## Changelog
|
|
703
708
|
<!--
|
|
704
709
|
Placeholder for the next version (at the beginning of the line):
|
|
705
|
-
###
|
|
710
|
+
### **WORK IN PROGRESS**
|
|
706
711
|
-->
|
|
712
|
+
### 1.13.0 (2022-06-01)
|
|
713
|
+
* (klein0r) Added Admin 5 UI config
|
|
714
|
+
* (bluefox) Added rule block for javascript as plugin
|
|
707
715
|
|
|
708
|
-
## Changelog
|
|
709
716
|
### 1.12.6 (2022-04-23)
|
|
710
717
|
* (Apollon77) Fix crash cases reported by Sentry
|
|
711
718
|
|
|
@@ -718,265 +725,6 @@ Before sending it to `telegram.INSTANCE.communicate.responseJson you need to str
|
|
|
718
725
|
### 1.12.3 (2022-04-19)
|
|
719
726
|
* (Apollon77) Make sure also not set states can be queried - will return "State not set" in this case!
|
|
720
727
|
|
|
721
|
-
### 1.12.2 (2022-04-01)
|
|
722
|
-
* (Apollon77) Fix crash cases reported by Sentry
|
|
723
|
-
|
|
724
|
-
### 1.12.0 (2022-03-21)
|
|
725
|
-
* (Apollon77) Add new JSON states communication.responseJson and communication.responseSilentJson to also accept json structures (stringified!) to send messages
|
|
726
|
-
* (Apollon77) Try to prevent adapter crashes when internet is not available
|
|
727
|
-
* (Apollon77) Add Sentry for crash reporting
|
|
728
|
-
|
|
729
|
-
### 1.11.1 (2022-01-27)
|
|
730
|
-
* (bluefox) fixed the receiving files
|
|
731
|
-
|
|
732
|
-
### 1.11.0 (2022-01-26)
|
|
733
|
-
* (bluefox) Added bruteforce protection
|
|
734
|
-
* (bluefox) Extended blockly with `disable_web_preview` option
|
|
735
|
-
* (bluefox) added `communicate.responseSilent` state to answer silently
|
|
736
|
-
|
|
737
|
-
### 1.10.1 (2022-01-26)
|
|
738
|
-
* (bluefox) Updated telegram library
|
|
739
|
-
|
|
740
|
-
### 1.10.0 (2021-07-30)
|
|
741
|
-
* (PeterVoronov) Add botSendRaw state to allow processing of the RAW data send by bot
|
|
742
|
-
* (Apollon77) Add tier for js-controller 3.3
|
|
743
|
-
* (bluefox) Fixed the control of the states
|
|
744
|
-
|
|
745
|
-
### 1.9.0 (2021-06-26)
|
|
746
|
-
* (bluefox) Added the option to not authenticate the new users
|
|
747
|
-
* (bluefox) Added the option to disable system messages for specific users
|
|
748
|
-
|
|
749
|
-
### 1.8.3 (2021-06-26)
|
|
750
|
-
* (Nahasapeemapetilon) corrected bug with many simultaneous requests
|
|
751
|
-
* (bluefox) formatting
|
|
752
|
-
* (bluefox) implemented editMessageMedia and editMessageCaption
|
|
753
|
-
* (bluefox) Encrypt token
|
|
754
|
-
* (bluefox) Corrected error with password
|
|
755
|
-
* (bluefox) Corrected error with boolean easy controls
|
|
756
|
-
|
|
757
|
-
### 1.8.2 (2021-05-28)
|
|
758
|
-
* (Diginix) fixed data types
|
|
759
|
-
|
|
760
|
-
### 1.8.1 (2021-04-20)
|
|
761
|
-
* (bluefox) added the admin5 support
|
|
762
|
-
|
|
763
|
-
### 1.8.0 (2021-02-22)
|
|
764
|
-
* (Apollon77/Nahasapeemapetilon) catch several API error cases to hopefully get around adapter crashes on network errors
|
|
765
|
-
* (Nahasapeemapetilon) add support for media groups and multiple image qualities
|
|
766
|
-
|
|
767
|
-
### 1.7.0 (2021-01-08)
|
|
768
|
-
* (bluefox) Support of new Let's Encrypt (only with js-controller 3.2.x)
|
|
769
|
-
|
|
770
|
-
### 1.6.2 (2020-12-27)
|
|
771
|
-
* (fincha) Fixing error with keyboard
|
|
772
|
-
|
|
773
|
-
### 1.6.1 (2020-12-01)
|
|
774
|
-
* (ChristianB86) Added option to set the amount of repeats for telegram call.
|
|
775
|
-
|
|
776
|
-
### 1.6.0 (2020-11-09)
|
|
777
|
-
* (MarkRohrbacher) Allow overriding chatId / user when writing JSON objects to telegram.INSTANCE.communicate.response
|
|
778
|
-
* (blazeis) Fix Send message via Response field with Username
|
|
779
|
-
* (Garfonso) fill requestRaw also for callbackQuery
|
|
780
|
-
|
|
781
|
-
### 1.5.9 (2020-05-04)
|
|
782
|
-
* (Apollon77) potential error fixed when sending messages
|
|
783
|
-
* (Apollon77) webserver initialization optimized again to prevent errors with invalid certificates
|
|
784
|
-
|
|
785
|
-
### 1.5.8 (2020-04-30)
|
|
786
|
-
* (Apollon77) errors on webserver initialization are handled properly
|
|
787
|
-
|
|
788
|
-
### 1.5.6 (2020-04-04)
|
|
789
|
-
* (bluefox) Fixed missing languages for blockly
|
|
790
|
-
* (bluefox) Added description of easy-keyboard
|
|
791
|
-
|
|
792
|
-
### 1.5.5 (2020-04-04)
|
|
793
|
-
* (alutov) Fixed bug for telegram users with an empty username
|
|
794
|
-
* (Mark Rohrbacher) Allowed JSON objects in telegram.*.communicate.response
|
|
795
|
-
|
|
796
|
-
### 1.5.4 (2020-03-11)
|
|
797
|
-
* (bluefox) Improvement of `callmebot`
|
|
798
|
-
|
|
799
|
-
### 1.5.3 (2020-02-23)
|
|
800
|
-
* (foxriver76) removed usage of adapter.objects
|
|
801
|
-
* (Haba) Fix of the response for the "callback_query" event
|
|
802
|
-
|
|
803
|
-
### 1.5.1 (2020-02-09)
|
|
804
|
-
* (bluefox) Invalid parameters were checked
|
|
805
|
-
|
|
806
|
-
### 1.5.0 (2020-02-03)
|
|
807
|
-
* (bluefox) Added voice calls
|
|
808
|
-
|
|
809
|
-
### 1.4.7 (2019-12-27)
|
|
810
|
-
* (Apollon77) Make compatible with js-controller 2.3
|
|
811
|
-
|
|
812
|
-
### 1.4.6 (2019-12-09)
|
|
813
|
-
* (bluefox) Allowed writeOnly states in telegram
|
|
814
|
-
|
|
815
|
-
### 1.4.4 (2019-11-27)
|
|
816
|
-
* (bluefox) New sendTo message "ask" was added (see [Question](#question) )
|
|
817
|
-
|
|
818
|
-
### 1.4.3 (2019-02-21)
|
|
819
|
-
* (BuZZy1337) Bugfix for not yet completely implemented feature
|
|
820
|
-
|
|
821
|
-
### 1.4.2 (2019-02-18)
|
|
822
|
-
* (BuZZy1337) fix for recipients containing spaces
|
|
823
|
-
* (BuZZy1337) change loglevel of "getMe" info-messages to debug
|
|
824
|
-
* (bluefox) fix scroll in firefox
|
|
825
|
-
|
|
826
|
-
### 1.4.1 (2019-01-12)
|
|
827
|
-
* (simatec) Support for Compact mode
|
|
828
|
-
|
|
829
|
-
### 1.4.0 (2019-01-06)
|
|
830
|
-
* (bluefox) Custom settings for states were added
|
|
831
|
-
|
|
832
|
-
### 1.3.6 (2018-12-01)
|
|
833
|
-
* (Apollon77) fix #78
|
|
834
|
-
|
|
835
|
-
### 1.3.5 (2018-11-04)
|
|
836
|
-
* (BuZZy1337) Fix a small error caused by previous commit
|
|
837
|
-
|
|
838
|
-
### 1.3.4 (2018-11-04)
|
|
839
|
-
* (BuZZy1337) Ask if saved users should be wiped when password is changed.
|
|
840
|
-
|
|
841
|
-
### 1.3.3 (2018-11-03)
|
|
842
|
-
* (BuZZy1337) Show warning if no password is set.
|
|
843
|
-
|
|
844
|
-
### 1.3.2 (2018-10-28)
|
|
845
|
-
* (BuZZy1337) Just minor cosmetic fixes/changes
|
|
846
|
-
|
|
847
|
-
### 1.3.1 (2018-10-08)
|
|
848
|
-
* (bluefox) The ability of enable/disable of states controlling was added
|
|
849
|
-
|
|
850
|
-
### 1.3.0 (2018-09-19)
|
|
851
|
-
* (BuZZy1337) Added possibility to delete authenticated users in the Adapter-Config screen (via Messages tab)
|
|
852
|
-
* (BuZZy1337) fixed a problem "building" the Blockly `sendto` block when no adapter instance exists.
|
|
853
|
-
|
|
854
|
-
### 1.2.7 (2018-08-29)
|
|
855
|
-
* (BuZZy1337) Added "disable notification" checkbox to blockly block.
|
|
856
|
-
* (BuZZy1337) Added "parse_mode" selector to blockly block.
|
|
857
|
-
|
|
858
|
-
### 1.2.6 (2018-07-30)
|
|
859
|
-
* (BuZZy1337) Added support for sending Messages to Group-Chats via Blockly.
|
|
860
|
-
|
|
861
|
-
### 1.2.5 (2018-07-11)
|
|
862
|
-
* (BuZZy1337) Added possibility to specify more than one recipient. (separated by comma)
|
|
863
|
-
|
|
864
|
-
### 1.2.4 (2018-06-02)
|
|
865
|
-
* (BuZZy1337) remove HTML Tags from Logerror-Messages
|
|
866
|
-
* (Apollon77) fix misleading error when setting a value for a state
|
|
867
|
-
|
|
868
|
-
### 1.2.3 (2018-04-26)
|
|
869
|
-
* (Osrx) Added Socks5 settings to config dialog on machines running admin 2.
|
|
870
|
-
|
|
871
|
-
### 1.2.2 (2018-04-25)
|
|
872
|
-
* (kirovilya) Changed library for Proxy Socks5
|
|
873
|
-
|
|
874
|
-
### 1.2.1 (2018-04-17)
|
|
875
|
-
* (Haba) Added support for Proxy Socks5.
|
|
876
|
-
|
|
877
|
-
### 1.2.0 (2018-03-21)
|
|
878
|
-
* (AlGu) Possibility to define polling interval in configuration wizard. Default is 300ms.
|
|
879
|
-
|
|
880
|
-
### 1.1.4 (2018-03-20)
|
|
881
|
-
* (BasGo) Added checks before accessing non-existing options
|
|
882
|
-
|
|
883
|
-
### 1.1.3 (2018-03-19)
|
|
884
|
-
* (BasGo) Fixed issue preventing adapter to terminate correctly
|
|
885
|
-
* (BasGo) Fixed issue with wrong callback query id
|
|
886
|
-
|
|
887
|
-
### 1.1.2 (2018-03-16)
|
|
888
|
-
* (BasGo) Reworked configuration and translation
|
|
889
|
-
|
|
890
|
-
### 1.1.1 (2018-01-26)
|
|
891
|
-
* (Haba) New objects: botSendChatId, botSendMessageId
|
|
892
|
-
|
|
893
|
-
### 1.1.0 (2018-01-24)
|
|
894
|
-
* (bluefox) Possibility to send photo, video, document, audio as buffer.
|
|
895
|
-
|
|
896
|
-
### 1.0.11 (2018-01-23)
|
|
897
|
-
* (Haba) Sending an image without intermediate caching
|
|
898
|
-
|
|
899
|
-
### 1.0.10 (2018-01-18)
|
|
900
|
-
* (Haba) Updating for Admin3
|
|
901
|
-
|
|
902
|
-
### 1.0.9 (2017-11-27)
|
|
903
|
-
* (kirovilya) Allow the sending of GIF via sendDocument
|
|
904
|
-
|
|
905
|
-
### 1.0.8 (2017-10-03)
|
|
906
|
-
* (Haba1234) initPolling() this is deprecated. -> startPolling()
|
|
907
|
-
* (Haba1234) Add log polling_error and webhook_error.
|
|
908
|
-
|
|
909
|
-
### 1.0.7 (2017-09-27)
|
|
910
|
-
* (Haba) New function: deleteMessage. Update version lib node-telegram-bot-api
|
|
911
|
-
|
|
912
|
-
### 1.0.6 (2017-07-19)
|
|
913
|
-
* (Haba) Fix an incorrect order of writing variables
|
|
914
|
-
|
|
915
|
-
### 1.0.5 (2017-07-18)
|
|
916
|
-
* (Haba) inline keyboard and new functions: answerCallbackQuery, editMessageText, editMessageReplyMarkup
|
|
917
|
-
|
|
918
|
-
### 1.0.4 (2017-06-22)
|
|
919
|
-
* (dwm) Fix longitude and latitude
|
|
920
|
-
|
|
921
|
-
### 1.0.3 (2017-05-24)
|
|
922
|
-
* (bluefox) Fix position message
|
|
923
|
-
|
|
924
|
-
### 1.0.2 (2017-01-13)
|
|
925
|
-
* (bluefox) show only installed instances in blockly
|
|
926
|
-
|
|
927
|
-
### 1.0.1 (2016-11-04)
|
|
928
|
-
* (bluefox) Show user name in error message
|
|
929
|
-
|
|
930
|
-
### 1.0.0 (2016-10-31)
|
|
931
|
-
* (bluefox) server mode with web hooks
|
|
932
|
-
|
|
933
|
-
### 0.4.4 (2016-10-12)
|
|
934
|
-
* (bluefox) support of blockly
|
|
935
|
-
|
|
936
|
-
### 0.4.3 (2016-08-28)
|
|
937
|
-
* (bluefox) filter out double messages
|
|
938
|
-
|
|
939
|
-
### 0.4.2 (2016-08-22)
|
|
940
|
-
* (bluefox) translations
|
|
941
|
-
* (bluefox) configurable restarting/started texts
|
|
942
|
-
|
|
943
|
-
### 0.4.1 (2016-07-29)
|
|
944
|
-
* (bluefox) response to chatId and not to userId
|
|
945
|
-
* (bluefox) cut messages with @
|
|
946
|
-
* (bluefox) add new states: requestChatId and requestUserId
|
|
947
|
-
|
|
948
|
-
### 0.4.0 (2016-07-21)
|
|
949
|
-
* (bluefox) allow sending of messages to chats via chat-ID
|
|
950
|
-
* (bluefox) support of video(mp4), audio, document, location, sticker, action
|
|
951
|
-
|
|
952
|
-
### 0.3.0 (2016-05-31)
|
|
953
|
-
* (bluefox) restart connection every hour
|
|
954
|
-
|
|
955
|
-
### 0.2.4 (2016-05-08)
|
|
956
|
-
* (bluefox) replace "_" with " " when sending to text2command
|
|
957
|
-
|
|
958
|
-
### 0.2.3 (2016-05-04)
|
|
959
|
-
* (bluefox) replace "/" with "#" when sending to text2command
|
|
960
|
-
|
|
961
|
-
### 0.2.2 (2016-04-14)
|
|
962
|
-
* (Jonas) fix unload
|
|
963
|
-
|
|
964
|
-
### 0.2.1 (2016-04-13)
|
|
965
|
-
* (Jonas) fix configuration and send to more than one user
|
|
966
|
-
|
|
967
|
-
### 0.2.0 (2016-04-12)
|
|
968
|
-
* (bluefox) add send photo possibility
|
|
969
|
-
|
|
970
|
-
### 0.1.0 (2016-02-20)
|
|
971
|
-
* (bluefox) fix double responses.
|
|
972
|
-
* (bluefox) inform about new start
|
|
973
|
-
|
|
974
|
-
### 0.0.2 (2016-02-15)
|
|
975
|
-
* (bluefox) fix error with sendTo
|
|
976
|
-
|
|
977
|
-
### 0.0.1 (2016-02-13)
|
|
978
|
-
* (bluefox) initial commit
|
|
979
|
-
|
|
980
728
|
## License
|
|
981
729
|
|
|
982
730
|
The MIT License (MIT)
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"Keyboard command": "Tastaturbefehl",
|
|
17
17
|
"Leave it blank if no password desired": "Leer lassen, sofern kein Kennwort gewünscht wird",
|
|
18
18
|
"Let's Encrypt settings": "Let's Encrypt Einstellungen",
|
|
19
|
-
"Listen on all IPs": "
|
|
19
|
+
"Listen on all IPs": "Zugriff von allen IPs zulassen",
|
|
20
20
|
"Login": "Proxy Benutzername",
|
|
21
21
|
"Main settings": "Allgemeine Einstellungen",
|
|
22
22
|
"Message ignored: ": "Meldung wurde ignoriert: ",
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "wie \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "Wert als Boolean",
|
|
77
77
|
"value as number": "Wert als Zahl",
|
|
78
|
-
"value as string": "Wert als String"
|
|
78
|
+
"value as string": "Wert als String",
|
|
79
|
+
"Do not authenticate new users": "Keine neuen Benutzer authentifizieren",
|
|
80
|
+
"Save media files": "Speichern der Mediendateien"
|
|
79
81
|
}
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "like \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "value as boolean",
|
|
77
77
|
"value as number": "value as number",
|
|
78
|
-
"value as string": "value as string"
|
|
78
|
+
"value as string": "value as string",
|
|
79
|
+
"Do not authenticate new users": "Do not authenticate new users",
|
|
80
|
+
"Save media files": "Save media files"
|
|
79
81
|
}
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "como \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "valor como booleano",
|
|
77
77
|
"value as number": "valor como numero",
|
|
78
|
-
"value as string": "valor como cadena"
|
|
78
|
+
"value as string": "valor como cadena",
|
|
79
|
+
"Do not authenticate new users": "No autenticar nuevos usuarios",
|
|
80
|
+
"Save media files": "Guardar archivos multimedia"
|
|
79
81
|
}
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "comme \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "valeur en tant que booléen",
|
|
77
77
|
"value as number": "valeur en nombre",
|
|
78
|
-
"value as string": "valeur sous forme de chaîne"
|
|
78
|
+
"value as string": "valeur sous forme de chaîne",
|
|
79
|
+
"Do not authenticate new users": "Ne pas authentifier les nouveaux utilisateurs",
|
|
80
|
+
"Save media files": "Enregistrer des fichiers multimédias"
|
|
79
81
|
}
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "come \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "valore come booleano",
|
|
77
77
|
"value as number": "valore come numero",
|
|
78
|
-
"value as string": "valore come stringa"
|
|
78
|
+
"value as string": "valore come stringa",
|
|
79
|
+
"Do not authenticate new users": "Non autenticare nuovi utenti",
|
|
80
|
+
"Save media files": "Salva i file multimediali"
|
|
79
81
|
}
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "zoals \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "waarde als Boolean",
|
|
77
77
|
"value as number": "waarde als nummer",
|
|
78
|
-
"value as string": "waarde als tekenreeks"
|
|
78
|
+
"value as string": "waarde als tekenreeks",
|
|
79
|
+
"Do not authenticate new users": "Authenticeer geen nieuwe gebruikers",
|
|
80
|
+
"Save media files": "Mediabestanden opslaan"
|
|
79
81
|
}
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "na przykład \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "wartość jako boolean",
|
|
77
77
|
"value as number": "wartość jako liczba",
|
|
78
|
-
"value as string": "wartość jako ciąg"
|
|
78
|
+
"value as string": "wartość jako ciąg",
|
|
79
|
+
"Do not authenticate new users": "Nie uwierzytelniaj nowych użytkowników",
|
|
80
|
+
"Save media files": "Zapisz pliki multimedialne"
|
|
79
81
|
}
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "como \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "valor como booleano",
|
|
77
77
|
"value as number": "valor como numero",
|
|
78
|
-
"value as string": "valor como string"
|
|
78
|
+
"value as string": "valor como string",
|
|
79
|
+
"Do not authenticate new users": "Não autenticar novos usuários",
|
|
80
|
+
"Save media files": "Salvar arquivos de mídia"
|
|
79
81
|
}
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "например: \"https://mydomain.noip.com:8443\"",
|
|
76
76
|
"value as boolean": "логическое значение",
|
|
77
77
|
"value as number": "значение в виде число",
|
|
78
|
-
"value as string": "значение в виде строки"
|
|
78
|
+
"value as string": "значение в виде строки",
|
|
79
|
+
"Do not authenticate new users": "Не аутентифицировать новых пользователей",
|
|
80
|
+
"Save media files": "Сохраняйте медиафайлы"
|
|
79
81
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Allow state control": "
|
|
2
|
+
"Allow state control": "允许控制状态",
|
|
3
3
|
"Auth_No": "不,保留已保存的用户!",
|
|
4
4
|
"Auth_Yes": "是的,删除所有用户!",
|
|
5
5
|
"Authenticated Users": "认证用户",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"Login": "代理用户名",
|
|
21
21
|
"Main settings": "主要设置",
|
|
22
22
|
"Message ignored: ": "讯息被忽略:",
|
|
23
|
-
"Messages": "
|
|
23
|
+
"Messages": "信息内容",
|
|
24
24
|
"No_Password": "您没有选择密码..如果您没有为您的机器人设置密码,每个陌生人都可以与您的机器人通信!强烈建议设置密码!",
|
|
25
25
|
"OFF-Command": "离开",
|
|
26
26
|
"OFF-Status": "关掉",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"ON-Status": "切换到",
|
|
29
29
|
"Please enter password in form \"/password phrase\"": "请以“ /密码短语”形式输入密码",
|
|
30
30
|
"Polling interval (ms)": "轮询间隔(ms)",
|
|
31
|
-
"Port": "
|
|
31
|
+
"Port": "端口",
|
|
32
32
|
"Port to check the domain:": "用于检查域的端口",
|
|
33
33
|
"Private certificate": "私人证书",
|
|
34
34
|
"Proxy Socks5 enable": "Proxy Socks5启用",
|
|
@@ -75,5 +75,7 @@
|
|
|
75
75
|
"url_help": "比如“https://mydomain.noip.com:8443”",
|
|
76
76
|
"value as boolean": "布尔值",
|
|
77
77
|
"value as number": "价值作为数字",
|
|
78
|
-
"value as string": "值作为字符串"
|
|
78
|
+
"value as string": "值作为字符串",
|
|
79
|
+
"Do not authenticate new users": "不对新用户进行身份验证",
|
|
80
|
+
"Save media files": "保存媒体文件"
|
|
79
81
|
}
|