2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 13:27:44 +00:00

656 Commits

Author SHA1 Message Date
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
GochoMugo
4ed6d945ab
pr/368: Update TelegramBot#answerCallbackQuery() signature
References:

  * FR: https://github.com/yagop/node-telegram-bot-api/issues/367
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/368
  * PR-by: @mnb3000
2017-07-06 15:49:02 +03:00
Misha
67839b6faa src/telegram: Update TelegramBot#answerCallbackQuery() signature
Feature:

  The signature is inconsistent from other methods in TelegramBot.
  Make it consistent.

References:

    * FR: https://github.com/yagop/node-telegram-bot-api/issues/367
    * PR: https://github.com/yagop/node-telegram-bot-api/pull/368
    * PR-by: @mnb3000
2017-07-06 12:29:50 +03:00
Yago
f20a7f4ee5 Uppps, fix "{" 2017-07-05 23:51:03 +02:00
Yago
0bf148adb9 Check if test are running in CI and skip invoice if so 2017-07-05 23:47:05 +02:00
Yago
e1f8fb25ec Skip sendInvoice test method 2017-07-05 23:30:14 +02:00
GochoMugo
fd8251b90f
chore/syntax: Fix missing colons 2017-07-05 13:34:18 +03:00
GochoMugo
d38dfd3a12
pr/362: Support Bot API v3.1 (#362, #369)
References:

  * FR: https://github.com/yagop/node-telegram-bot-api/issues/361
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/362
  * PR-by: @Lord-Protector
  * PR/2: https://github.com/yagop/node-telegram-bot-api/pull/369
  * PR/2-by: @kamikazechaser
2017-07-05 11:40:23 +03:00
GochoMugo
8ed0a2dcef
test: Fix test for TelegramBot#setChatDescription()
Bug:

  We MUST ensure we update the description. If the description
  is unchanged, an error is thrown by the API.

Fix:

  Append a random number to the description.
2017-07-05 11:38:39 +03:00
GochoMugo
96b90c2d56
src/telegram: Add tests for Bot API v3.1 methods
References:

  * PR: https://github.com/yagop/node-telegram-bot-api/pull/369
  * PR-by: @kamikazechaser
  * Parent-PR: https://github.com/yagop/node-telegram-bot-api/pull/362
  * Parent-PR-by: @Lord-Protector
2017-07-05 09:09:42 +03:00
Savely Krasovsky
83d3235cc5 src/telegram: Support Bot API v3.1
References:

  * Bot API v3.1: https://core.telegram.org/bots/api-changelog#june-30-2017
2017-07-05 09:06:38 +03:00
kucherenkovova
61e8f85368 src/telegram: Fix download file path on windows
References:

    * BR: https://github.com/yagop/node-telegram-bot-api/issues/363
    * PR: https://github.com/yagop/node-telegram-bot-api/pull/364
    * PR-by: @kucherenkovova
2017-07-01 08:56:01 +03:00
GochoMugo
9a4298308e
doc: Add tutorials page
References:

  * PR: https://github.com/yagop/node-telegram-bot-api/pull/358
  * FR: https://github.com/yagop/node-telegram-bot-api/issues/351
  * PR-by, FR-by: @hosein2398
2017-06-26 12:28:11 +03:00
GochoMugo
a3268164f5
examples: Add game example
References:

  * PR: https://github.com/yagop/node-telegram-bot-api/pull/342
  * PR-by: @MCSH
2017-06-26 12:10:18 +03:00
Victor Le
54391e76a0 doc: Fix anchor webhook link (#346)
References:

    * PR: https://github.com/yagop/node-telegram-bot-api/pull/346
    * PR-by: @Coac
2017-06-02 10:16:05 +03:00
GochoMugo
d082a2d7d9
src/telegram: Sort the message types for less cognitive load 2017-05-26 18:20:29 +03:00
Mohammed Sohail
5490a3a6e0 doc: Update API version badge (#339)
References:

  * PR: https://github.com/yagop/node-telegram-bot-api/pull/339
  * PR-by: @kamikazechaser 
  * API v3 progress tracker: https://github.com/yagop/node-telegram-bot-api/issues/332
2017-05-26 18:13:54 +03:00
GochoMugo
73269e79e2
src/telegram: Add missing event 'video_note'
References:

  * API Message type: https://core.telegram.org/bots/api#message
  * API v3 progress tracker: https://github.com/yagop/node-telegram-bot-api/issues/332
2017-05-26 18:08:58 +03:00
Mohammed Sohail
fe527957e0 src/telegram: Support API v3 Payments (#335)
References:

   * API v3 Payments: https://core.telegram.org/bots/payments
    * PR: https://github.com/yagop/node-telegram-bot-api/pull/335
    * PR-by: @kamikazechaser 
    * API v3 progress tracker: https://github.com/yagop/node-telegram-bot-api/issues/332
2017-05-26 17:59:22 +03:00
Mohammed Sohail
07a6e5ff23 src/telegram: Add missing Message sub-types, Deprecate old ones (#340)
References:

    * PR: https://github.com/yagop/node-telegram-bot-api/pull/340
    * PR-by: @kamikazechaser
2017-05-26 17:17:19 +03:00
Mohammed Sohail
177c951340 src/telegram: Add API v3 new update types and message sub-types (#333)
References:

    * API changelog: https://core.telegram.org/bots/api-changelog#may-18-2017
    * PR: https://github.com/yagop/node-telegram-bot-api/pull/333
    * PR-by: @kamikazechaser 
    * API v3: https://github.com/yagop/node-telegram-bot-api/issues/332
2017-05-26 16:46:26 +03:00
GochoMugo
cda9d8d597
src/telegram: Add deleteMessage method
References:

  * API deleteMessage method: https://core.telegram.org/bots/api#deleteMessage
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/324
  * PR-by: @JonasFowl
  * API v3: https://github.com/yagop/node-telegram-bot-api/issues/332
2017-05-26 16:29:02 +03:00
Mohammed Sohail
942fc4854b src/telegram: Add sendVideoNote method (#330)
References:

    * API sendVideoNote method: https://core.telegram.org/bots/api#sendvideonote
    * PR: https://github.com/yagop/node-telegram-bot-api/pull/330
    * PR-by: @kamikazechaser 
    * API v3: https://github.com/yagop/node-telegram-bot-api/issues/332
2017-05-26 16:25:34 +03:00
Guidone
4653bb1b38 doc: Add RedBot to list of projects using telegram-bot-api (#341) 2017-05-26 10:36:34 +03:00
GochoMugo
64bbefd898
test: Fix tests for 'TelegramBot#onText()'
Bug:

  The registered listeners remain in effect even after
  the suite is completed; allowing other suites to trigger
  the listeners.

Fix:

  Perform clean-up before moving to next suite.
2017-05-13 11:34:14 +03:00
GochoMugo
11bcdd3b6a
src/telegram: Add TelegramBot#removeTextListener()
Feature:

  This is the opposite action to `TelegramBot#onText()`.
  It allows removing any previously-registered listeners.

  It is similar to `TelegramBot#removeReplyListener()`.
2017-05-13 11:28:04 +03:00
Fabio Zuber
9f3107b5ab src/telegram: reset state of global regexp (#326)
References:

  * BR: https://github.com/yagop/node-telegram-bot-api/issues/325
  * BR-by: @Sirius-A
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/326
  * PR-by: @Sirius-A
2017-05-13 10:53:21 +03:00
GochoMugo
3d4d10f9b3
doc: Add docs on experimental features 2017-05-13 10:34:07 +03:00
GochoMugo
a15e273bb9
doc: List 'bot-brother' in community section
References:

  * PR #315: https://github.com/yagop/node-telegram-bot-api/pull/315
  * PR-by: @saeedhei
2017-04-28 12:26:43 +03:00
GochoMugo
e250d65cb9
docs: Update changelog v0.27.1 2017-04-10 08:51:19 +03:00
GochoMugo
57e7d8e3b9
pkg: Bump patch version (0.27.0 -> 0.27.1) 2017-04-07 11:13:11 +03:00
GochoMugo
e63a61f232
docs: Update changelog 2017-04-07 11:11:59 +03:00
Yago
230cd20828 Merge pull request #307 from JaakkoLipsanen/patch-1
Fix badge links in README
2017-03-23 14:15:09 +01:00
Jaakko Lipsanen
221cbcbbc4 Fix badge links in README 2017-03-23 14:52:54 +02:00
Evgeny Bondarenko
c1fc486225 src: Load transpiled code for Node 5
References:
  * Bug-Report #297: https://github.com/yagop/node-telegram-bot-api/issues/297
  * Bug-Report-by: @jehy
  * PR  #298: https://github.com/yagop/node-telegram-bot-api/pull/298
  * PR-by: @jehy
2017-03-09 17:17:03 +03:00
GochoMugo
607a39ed5e
src/polling: Fix defaulting value of 'options.polling.params.timeout' 2017-02-16 11:47:55 +03:00
GochoMugo
e9106a3d0e
doc: Fix typos in Github issue template
References:

  * Reported-by: @GingerPlusPlus
2017-02-16 11:47:22 +03:00
Mohammed Sohail
9c60068122 examples: Express webhook (#287)
Feature:

  A webhook integration with an express app.

References:

  * Feature request: https://github.com/yagop/node-telegram-bot-api/issues/282
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/287
  * Requested-by: @kamikazechaser 
  * PR-by: @kamikazechaser
2017-02-15 08:17:55 +03:00
Plusb Preco
a44eb7f1ee docs: Docs improvements (#291)
Feature:

  * Add notes about events in `api` document
  * Update copyright year
  * Cleanup docs

References:

  * Feature request: https://github.com/yagop/node-telegram-bot-api/issues/289
  * PR: https://github.com/yagop/node-telegram-bot-api/pull/291
  * Requested-by: @preco21 
  * PR-by: @preco21
2017-02-15 07:59:56 +03:00
GochoMugo
b2afdeb6a8
doc: Prepare for release v0.27.0 2017-02-10 17:50:50 +03:00
GochoMugo
3edb6d9b6e
doc: Update changelog 2017-02-10 17:45:55 +03:00
GochoMugo
130f6940ce
src/polling: Fix bug #284
Bug:

  During polling, deleting the already-set webhook, caused
  the `TelegramBotPolling#_getUpdates()` return an unexpected
  value.

  We expect the method to return an array (in the `.then()` clause).
  However, deleting the webhook returns its value, which is an object,
  from the method `_getUpdates()`.

Fix:

  Simply retry the polling request and return the promise.

Notes:

  Should we use recursion? I do not think so.
  Why? The chances of getting the error (having a webhook set) AGAIN
  is quite rare. And if it happens, there must be some problem with
  different instances invoking polling and webhook simultaneously.
  In that case, we wont struggle to recover from such a scenario.
  User is on their own! Isht!

References:

  * Bug report:   https://github.com/yagop/node-telegram-bot-api/issues/284
  * Reported by:  @dcparga
2017-02-10 12:40:47 +03:00