2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 21:07:39 +00:00

497 Commits

Author SHA1 Message Date
GochoMugo
ce9ff57a63
src/telegram: Don't JSON-serialize parameter if already of String type 2017-11-27 08:51:54 +03:00
GochoMugo
012e7df35f
src: Support API v3.5 provider_data parameter 2017-11-27 08:15:41 +03:00
GochoMugo
57dec19bab
src: Support future additional Telegram parameters
References:

  * FR: https://github.com/yagop/node-telegram-bot-api/issues/454
2017-11-27 07:54:01 +03:00
GochoMugo
fce9244dfd
doc: Update help information
References:

  * Issue #219: https://github.com/yagop/node-telegram-bot-api/issues/219
  * Issue #273: https://github.com/yagop/node-telegram-bot-api/issues/273
  * Issue #304: https://github.com/yagop/node-telegram-bot-api/issues/304
2017-11-27 07:11:26 +03:00
GochoMugo
0008a39227 pr: Merge edited PR (#440) 2017-11-27 06:49:47 +03:00
GochoMugo
183b6bdb28
doc: Generate API reference, Update changelog 2017-11-27 06:48:22 +03:00
GochoMugo
816511b19f pr: Merge kamikazechaser/node-telegram-bot-api#feature/stickersets 2017-11-27 06:45:58 +03:00
GochoMugo
cfde217488
test: Fix lint error 2017-11-27 06:37:04 +03:00
GochoMugo
13472899e4 pr: Merge edited PR (#439) 2017-11-27 06:35:45 +03:00
GochoMugo
59378d381b
test: Add tests 2017-11-27 06:33:59 +03:00
GochoMugo
79118b9fae
doc: Minor fixes, Update changelog 2017-11-27 05:50:41 +03:00
GochoMugo
65384a11d4
pr: Merge kamikazechaser/node-telegram-bot-api#feature/livelocations 2017-11-27 05:41:22 +03:00
GochoMugo
1f61b82aa8
doc: Fix documented types for params chatId, userId
References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/300
2017-11-27 05:25:53 +03:00
GochoMugo
633bd83a0a
src/telegram: JSON-serialize 'mask_position's
References:

  * Similar PR: https://github.com/yagop/node-telegram-bot-api/pull/468
2017-11-27 05:14:43 +03:00
drGOD
4586ebd10b src/telegram: JSON-serialize shipping_options in answerShippingQuery (#468) 2017-11-26 11:03:36 +03:00
Yago
fd337e91f2
Merge pull request #463 from saeedhei/patch-1
Persian Language added
2017-11-22 23:32:02 +01:00
Yago
20c5ab6710
Merge branch 'master' into patch-1 2017-11-22 23:31:48 +01:00
Yago
5510c07876
Merge branch 'master' into patch-1 2017-11-22 23:28:53 +01:00
Yago
3fbc6c85b0
Merge pull request #462 from Archakov06/patch-2
Add tutorial link RUS
2017-11-22 23:24:47 +01:00
Sedric Heidarizarei
757ba2476a
Persian Language added 2017-11-22 05:49:52 +03:30
Archakov Dennis
16045fda6e
Add tutorial link RUS 2017-11-22 00:55:11 +03:00
GochoMugo
ba4d207684
src: Improve performance when matching message types
Feature:

  Considering that the most encountered message type is (probably) 'text',
  we should match it as soon as possible; without wasting much time
  looping through less-likely-to-matched types.
2017-11-19 00:05:32 +03:00
GochoMugo
772609c334
doc: Update ParseError message; error might not be from Telegram 2017-11-18 23:55:05 +03:00
GochoMugo
ea420edad9
doc/help: Add link to bug '502 Bad Gateway'
References:

  * BR '502 Bad Gateway': https://github.com/yagop/node-telegram-bot-api/issues/377
2017-11-18 23:49:33 +03:00
GochoMugo
8c965d3a14
src: Improve default error logging of polling_error, webhook_error
References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/377
2017-11-18 23:21:52 +03:00
MCSH
6263dcb007
examples: Fix game to answer callback query correctly
References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/418
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/449
2017-11-18 22:47:51 +03:00
Aaron Meese
e03ffe5d04 doc: Update README.md (#457) 2017-11-18 22:18:50 +03:00
GochoMugo
dc897d95e5
chore: Update npm script gen-doc to doc 2017-11-18 22:04:21 +03:00
GochoMugo
bbac07ad2c
doc: Document TelegramBot.errors, TelegramBot.messageTypes 2017-11-18 21:49:34 +03:00
GochoMugo
49df0c6e02
src/telegram: Add metadata argument in message event (and friends)
References:

  * FR: https://github.com/yagop/node-telegram-bot-api/issues/409
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/413
2017-11-18 21:44:06 +03:00
GochoMugo
3722c7182c
src/telegram: Fix TelegramBot#answerCallbackQuery() signature
Bug:

  `callbackQueryId` is a required argument. All other options
  are optional.

References:

  * Telegram API doc: https://core.telegram.org/bots/api#answercallbackquery
  * Blame: https://github.com/yagop/node-telegram-bot-api/pull/368
2017-11-18 20:31:01 +03:00
GochoMugo
9cf36a3b20
pkg: Add support for Node v9 2017-11-16 21:03:18 +03:00
GochoMugo
6b21ca3570
doc: Update contributing guidelines
References:

  * Issue not in English: https://github.com/yagop/node-telegram-bot-api/issues/460
2017-11-16 15:40:43 +03:00
GochoMugo
b6349de67e
doc: Document TelegramBot#on()
References:

  * Issue: https://github.com/yagop/node-telegram-bot-api/issues/436
2017-11-16 15:33:22 +03:00
GochoMugo
7f41992e62
pkg: Bump minor version (v0.28.0 -> v0.29.0)
See `CHANGELOG.md`.
v0.29.0
2017-10-22 19:36:08 +03:00
GochoMugo
1475881a37
doc: Update changelog 2017-10-22 19:28:28 +03:00
GochoMugo
4f50f7350c
src/telegram: Add API v3.2 methods
Notes:

    Add methods:
      * TelegramBot#createNewStickerSet
      * TelegramBot#addStickerToSet
      * TelegramBot#setStickerPositionInSet
      * TelegramBot#deleteStickerFromSet

    Tests are missing!

References:

    * FR: https://github.com/yagop/node-telegram-bot-api/issues/407
2017-10-16 13:07:58 +03:00
Mohammed Sohail
4d90529492
[API v3.4] Support sticker sets 2017-10-14 04:55:25 +05:30
Mohammed Sohail
b25bc6eddb
[Doc] Generate documentation 2017-10-14 04:36:07 +05:30
Mohammed Sohail
7315fcff3e
[Fix] Minor copypasta typo 2017-10-13 22:28:15 +05:30
Mohammed Sohail
962ce2af3c
[API v3.4] Support live locations 2017-10-13 22:24:43 +05:30
CapacitorSet
8fd243e6a8
src/telegram: Add TelegramBot#uploadStickerFile
Notes:

    * Closes PR #430

References:

    * FR: https://github.com/yagop/node-telegram-bot-api/issues/407
    * PR: https://github.com/yagop/node-telegram-bot-api/pull/430
    * PR-by: @CapacitorSet
2017-10-07 15:08:18 +03:00
CapacitorSet
a2d85b889a
src/telegram: Add TelegramBot#getStickerSet()
References:

    * FR: https://github.com/yagop/node-telegram-bot-api/issues/407
    * PR: https://github.com/yagop/node-telegram-bot-api/pull/429
    * PR-by: @CapacitorSet, @libertylocked
2017-10-07 14:50:25 +03:00
GochoMugo
f4f015a621
src/telegram: Use $NTBA_FIX_319 to apply fix for #319
Notes:

  The permanent fix introduces backwards-incompatible changes, which
  require a major version bump. Until we release v1,
  environment variable `${NTBA_FIX_319}` can be used to apply
  the fix.

References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/319
2017-08-25 18:51:51 +03:00
GochoMugo
ef48af49f5
src/telegram: Deprecate auto-enabling Promise cancellation
Side-effects:

  src/telegram: Allow providing custom Promise constructor

References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/319
2017-08-25 18:39:13 +03:00
GochoMugo
28160c70cd
doc: Fix broken link in change-log 2017-08-15 09:31:06 +03:00
GochoMugo
580afc92c1
pkg: Bump minor version (0.27.1 -> 0.28.0) v0.28.0 2017-08-15 09:26:03 +03:00
GochoMugo
4bb1374435
doc: Update changelog 2017-08-06 12:41:38 +03:00
GochoMugo
832bf78c94
pkg: Add support for Node v7, v8 2017-08-06 12:28:53 +03:00
GochoMugo
5f7d306f60
test: Skip tests on TelegramBot#sendVideoNote()
References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/365
2017-08-06 12:22:43 +03:00