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

34 Commits

Author SHA1 Message Date
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
Yago
5510c07876
Merge branch 'master' into patch-1 2017-11-22 23:28:53 +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
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
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
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
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
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
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
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
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
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
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
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
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
GochoMugo
3d4d10f9b3
doc: Add docs on experimental features 2017-05-13 10:34:07 +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
9a9dfa9560
src: Minor fixes 2017-02-09 19:06:38 +03:00
GochoMugo
e75d51ca8f
src/polling: Add constructor option 'options.polling.params'
Feature:

  Please see the updated API reference for more information on this
  new option.

Side-effects:

  * `options.timeout` is deprecated!

References:

  * "Feature request": https://github.com/yagop/node-telegram-bot-api/issues/243
2017-02-09 17:24:11 +03:00
Gocho Mugo
eed7c1e4d0 src: Add proper error handling (#283)
Feature:

    Please see `doc/usage.md` for more information on error-handling.
2017-02-09 16:12:22 +03:00
GochoMugo
79de62a96e
src/telegram: Add TelegramBot#removeReplyListener()
Feature:

  Please see the updated API Reference.

References:

  * Author: @githugger (Frederic Schneider <fschneider1992@gmail.com>)
  * Original PR: https://github.com/yagop/node-telegram-bot-api/pull/74
2017-02-09 15:07:08 +03:00
GochoMugo
dad8697411
doc: Document options.webHook.host 2017-01-30 13:44:07 +03:00
Anton Mironov
3263c6c253 Webhook health check endpoint 2017-01-30 12:50:22 +03:00
GochoMugo
99f364df11
doc/help: Add link to source 2017-01-25 13:53:56 +03:00
GochoMugo
ef3574ee88 doc: Improve project documentation 2017-01-20 09:13:18 +03:00