GochoMugo
daab34d98d
Update codebase
...
Details:
* Update documentation on constructors and methods
* Make code more modular
* Improve code (generally)
9 years ago
Mohammed Sohail
2a4fea42d7
New Update Fields From API v2.3 ( #227 )
...
* New Update Fields
bot will now get updates about posts in channels. Added new fields channel_post and edited_channel_post to Update.
9 years ago
GochoMugo
2ff2716ca2
[docs] Add link to docs for more information
9 years ago
Alexander Tarmolov
afd2373351
Proxy extra request options (PR #178 )
9 years ago
Plusb Preco
d4a5f5d16c
Fix request performance issue (PR #193 )
9 years ago
GochoMugo
578ad1fa13
[doc] Update doc on TelegramBot#sendContact()
9 years ago
GingerPlusPlus
0fb142f6ac
Added onlyFirstMatch option
9 years ago
Jishnu Mohan
2fa3f68d61
adding getGameHighScores
9 years ago
GochoMugo
75b36abfeb
Fix errors reported by our linter
9 years ago
GochoMugo
394f363465
Implement 'leaveChat'
...
Notes:
Merge branch 'feature/leaveChat' of
https://github.com/GochoMugo/node-telegram-bot-api into pr/186
References:
* PR #186 : https://github.com/yagop/node-telegram-bot-api/pull/186
9 years ago
GochoMugo
f5af2bf588
Add accompanying tests, minor fixes and updates for PR #158
9 years ago
GochoMugo
f91d426c35
Minor fixes and Docs update for PR #144
9 years ago
Mikhail Burshteyn
ec354925d6
JSON-stringify reply_markup when it is sent in qs
9 years ago
GochoMugo
be49b69219
Fix handling fs.readStream.path if it's a buffer
...
Bug:
The (private) method TelegramBot#_formatSendData(), used by public
methods, such as TelegramBot#sendPhoto(), throws an error
if the stream passed (fs.readStream) has the property 'path',
being an instance of Buffer.
For example,
const stream = fs.createReadStream(Buffer.from('cat.png'));
bot.sendPhoto(chatId, stream);
Would throw an error, like
TypeError: Path must be a string. Received <Buffer 60 62 63 64>
This is because of this line:
src/telegram.js:297
fileName = URL.parse(path.basename(data.path)).pathname;
path.basename() can not handle buffer (non-string) paths. From the
docs, "A TypeError is thrown if path is not a string...".
Fix:
Ensure path.basename() receives a string, by converting the buffer
to string.
References:
* fs.ReadStream: https://nodejs.org/docs/latest/api/fs.html#fs_class_fs_readstream
9 years ago
Jishnu Mohan
3a4e3cd721
adding sendGame and setGameScore
9 years ago
Chris54721
f9aa16f322
Additional edited_message events
...
- edited_message_text
- edited_message_caption
9 years ago
Chris54721
4746011dd1
Add edited_message support
9 years ago
Ola Flisbäck
10af3e4f55
Fixed a couple of debug prints
10 years ago
Horus Lugo
67344660d4
Added getChat, getChatAdministrators, getChatMembersCount and getChatMember
10 years ago
Conor Fennell
96adb918c1
Create a stop method #81
10 years ago
Serhii Dmytruk
cf8e90e70f
getchat action
10 years ago
Yago
335a5045d8
editMessageCaption URL
10 years ago
Yago
ed6cb09474
Bind this.processUpdate to TelegramBot context
10 years ago
Yago
cd86c93438
Fixed processUpdate
10 years ago
knock-in
c9556e3c98
Generate Docs from /src directly
10 years ago
Devin Doolin
3947683ad1
Further updates for Bots 2.0
...
- Adds support for callback_query-type messages
- Adds a showAlert option to answerCallbackQuery to more-closely align with the real bot API
- Adds tests for message editing functionality
- Adds a global test timeout of 10s and adds done() calls to all tests for assurance
10 years ago
TJ Horner
de6f0c8a14
Update for Telegram Bots 2.0
...
https://telegram.org/blog/bots-2-0
10 years ago
knock-in
b117a5b5ae
Generate Docs from /src directly
10 years ago
Jérémy Gotteland
3eaf377024
Added new methods sendVenue and sendContact
10 years ago
Iiro Jäppinen
9d25ceb3c4
add the sendVenue method
...
This method was added to the Telegram Bot API on April 9, 2016 in the Bot API 2.0 update. See https://core.telegram.org/bots/api#sendvenue for more info.
10 years ago
evolun
42a2d24273
Eslint correction
10 years ago
Devin Doolin
ae7ec074be
Further updates for Bots 2.0
...
- Adds support for callback_query-type messages
- Adds a showAlert option to answerCallbackQuery to more-closely align with the real bot API
- Adds tests for message editing functionality
- Adds a global test timeout of 10s and adds done() calls to all tests for assurance
10 years ago
evolun
763f717a04
Added the ability to specify the filename and the content type by sendDocument
10 years ago
TJ Horner
98bb9dfd09
Update for Telegram Bots 2.0
...
https://telegram.org/blog/bots-2-0
10 years ago
Yago
b46378d25b
jsdoc2md class constructor #90
10 years ago
AVVS
83e42201ee
refactor: rewrite to babel, es6 & eslint
10 years ago
Yago
c5f97ce524
Bind getFile response in getFileLink
10 years ago
Rafael Kr
d1e4fd11ee
added module querystring
...
Module querystring wasn't included before.
10 years ago
Rafael Kr
54130e6df9
Use of safer function qs.unescape
...
I didn't know about that function, thank you. I've updated the code.
10 years ago
Rafael Kr
39c0ce66b9
URL-decoded filename when sending file from stream
...
This sends the file as "My File.ext" instead of "My%20File.ext".
10 years ago
Yago
41be1afb9c
Updated onReplyToMessage doc
10 years ago
Yago
928cbbe95b
options.polling.timeout=10
10 years ago
Yago
17cb062c96
onReplyToMessage
10 years ago
Yago
186d1e3a5c
Catch errors while parsing JSON
10 years ago
Yago
874feaf833
Update doc
10 years ago
crisbal
bfc51a9ab7
Added method to answer inline query
10 years ago
crisbal
b9bf9775cc
Added support for listening to inline requests
10 years ago
Yago
bfb047312b
Update docs
10 years ago
Yago
f2153a7754
Throw error if Unsupported Buffer file type. Test 'should send a video from a Buffer'
10 years ago
Yago
b46ea1d9a6
util.isBuffer(data) is deprecated https://nodejs.org/api/util.html#util_util_isbuffer_object
10 years ago