Mohammed Sohail Sameja
47bea20539
[Tests] Update
...
- Set max-len at 200
- Fix eslint errors
2018-10-31 21:34:24 +05:30
Mohammed Sohail Sameja
6a7c088a63
[v4.0] Add tests and add minor improvement
...
Follow up update to #625
- Tests for both methods (sendAnimation, editMediaMessage) have been
added. editMediaMessage is nested under sendAnimation, hence both tests
are technically under a single block.
- Add an improvement/minor fix to the editMediaMessage method, where we
now stringify the first parameter (media) object interally within the
library. This allows the lib user to simply pass an object as the 1st
param without stringifying it.
2018-10-26 15:03:52 +05:30
Mohammed Sohail
cca75ec92a
Add documentation
2018-08-01 22:50:53 +05:30
Mohammed Sohail
fadf738da4
Add passport_data message type
...
Reference: Telegram API Documentation: https://core.telegram.org/bots/api#message
2018-08-01 22:31:43 +05:30
Mohammed Sohail
8b99ccb75c
Add sendAnimation method
...
Reference: Telegram API Documentation: https://core.telegram.org/bots/api#sendanimation
2018-08-01 22:29:09 +05:30
Mohammed Sohail
2d3421905c
Add animation message type
...
References: Telegram API Documentation: https://core.telegram.org/bots/api#message
2018-08-01 22:20:47 +05:30
Mohammed Sohail
67c738b0d3
Add editMessageMedia method
...
Reference: Telegram API Documentation: https://core.telegram.org/bots/api#editmessagemedia
2018-08-01 22:15:05 +05:30
Oleksandr Tryshchenko
435f06319e
doc: Fixed type annotations for message id parameter ( #491 )
...
References:
* BR: https://github.com/yagop/node-telegram-bot-api/issues/490
2018-01-11 12:21:14 +03:00
GochoMugo
96c50ba1bd
doc: Improve deprecation messages
2017-12-20 12:12:01 +03:00
GochoMugo
4358f20dbb
doc: Minor fixes on documentation
2017-12-20 12:02:09 +03:00
GochoMugo
0781ae685d
src/telegram: Add TelegramBot#sendMediaGroup()
...
References:
* Telegram API documentation: https://core.telegram.org/bots/api#sendmediagroup
2017-12-20 11:59:39 +03:00
GochoMugo
1a08221174
src/telegram: Improve sending files ( #471 )
...
References:
* PR: https://github.com/yagop/node-telegram-bot-api/pull/471
2017-12-20 11:03:00 +03:00
GochoMugo
f28416fbaf
src/telegram: Implement downloadFile() in terms of getFileStream()
2017-12-08 19:37:12 +03:00
GochoMugo
04e8b892aa
src/telegram: Emit 'info' on stream from TelegramBot#getFileStream()
2017-12-08 19:25:56 +03:00
GochoMugo
b968e893d3
src/telegram: Populate Stream#path from TelegramBot#getFileStream()
2017-12-08 19:18:55 +03:00
GochoMugo
d9692f45a9
src/telegram: Add TelegramBot#getFileStream()
...
References:
* FR: https://github.com/yagop/node-telegram-bot-api/issues/442
2017-12-07 12:04:46 +03:00
Gocho Mugo
0870684d83
src/polling: Fix the Offset Infinite Loop bug ( #265 )
...
References:
* BR: https://github.com/yagop/node-telegram-bot-api/issues/36
2017-12-05 15:18:18 +03:00
GochoMugo
8edb687283
src: Add fileOptions to remaining file-sending methods
2017-12-05 14:30:45 +03:00
GochoMugo
b774ff436f
src: Minor fixes
2017-12-05 13:56:07 +03:00
GochoMugo
d6083e4327
src: Support file options, defaults in sending files
2017-12-05 13:39:17 +03:00
GochoMugo
b1f0ebaf17
src/polling: Add options to TelegramBot#stopPolling()
...
Feature:
* Simply, pass through options to TelegramBot#stopPolling(options)
to TelegramBotPolling#stop(options)
References:
* Related PR: https://github.com/yagop/node-telegram-bot-api/pull/456
2017-12-05 13:13:48 +03:00
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
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
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
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
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
Mohammed Sohail
4d90529492
[API v3.4] Support sticker sets
2017-10-14 04:55:25 +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
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
GochoMugo
fd8251b90f
chore/syntax: Fix missing colons
2017-07-05 13:34:18 +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
d082a2d7d9
src/telegram: Sort the message types for less cognitive load
2017-05-26 18:20:29 +03:00