2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-22 01:47:25 +00:00

584 Commits

Author SHA1 Message Date
Yago Perez
2416679cee 0.54.0 v0.54.0 2021-07-21 22:01:08 +02:00
Daniel Pérez Fernández
5a4787884e
Telegram Bot API v5.3 Support (#886)
* Add new method sendPoll

* getMyCommands

* setMyCommands

* Update doc/api

* 1# Fix Test sendPhoto

The sendPhoto method does not support .gif files, use sendAnimation.

This fix remplace .gif file by .png

* CustomTitle and ChatPermissions support

setChatAdministratorCustomTitle
setChatPermissions

* Update Readme

Update Badge Telegram API Version

* Minor Fix and Fix setChatPhoto

The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution

* Minor Fix and Add Test

Fixed setChatPermissions

Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions

* Update Changelog and Package.json version

* Fix typos in Changelog

* Add support for poll_answer

From: https://github.com/yagop/node-telegram-bot-api/pull/777

* Add JieJiSS contribution in Changelog

* Add sendPoll Test

* Add unpinAllChatMessages Support

* Add copyMessage support

* Add close and logOut Support

* Add Test + Minor fixes

* Update CHANGELOG

Update version 0.50.1

* Update Readme Bot API Badge

* Update Version to 0.51.0

* Bot API 5.1 support Improved Invite Links

- Added the method createChatInviteLink
- Added the method editChatInviteLink
- Added the method revokeChatInviteLink

* Update version to 0.52.0 and new tests

- Update Changelog
- New Test
- Update version to 0.52.0

* Add new messageTypes

-  voice_chat_started
-  voice_chat_ended
- voice_chat_participants_invited

* Update Changelog and add new MessageType

* New messageTypes and updates

Add support for new messageTypes:
  - chat_invite_link
  - chat_member_updated

Add support for new updates:
 - my_chat_member
 - chat_member

* Telegram Bot API 5.2 Support

* Update Changelog + readme

* Fix Changelog

* Telegram Bot API v5.3

Add new methods:
* deleteMyCommands
* banChatMember
* getChatMemberCount

Deprecated:
 * Method kickChatMember()
 * Method getChatMembersCount()

New Test:
  * deleteMyCommands
  * banChatMember
  * getChatMemberCount

* docs: gen on linux

Co-authored-by: Mohammed Sohail <sohailsameja@gmail.com>
2021-06-29 11:38:33 +03:00
Yago Perez
2c06bc3b3d 0.53.0 v0.53.0 2021-04-29 23:59:11 +02:00
Daniel Pérez Fernández
e6938f81eb
Telegram Bot API 5.2 Support (#870)
* Add new method sendPoll

* getMyCommands

* setMyCommands

* Update doc/api

* 1# Fix Test sendPhoto

The sendPhoto method does not support .gif files, use sendAnimation.

This fix remplace .gif file by .png

* CustomTitle and ChatPermissions support

setChatAdministratorCustomTitle
setChatPermissions

* Update Readme

Update Badge Telegram API Version

* Minor Fix and Fix setChatPhoto

The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution

* Minor Fix and Add Test

Fixed setChatPermissions

Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions

* Update Changelog and Package.json version

* Fix typos in Changelog

* Add support for poll_answer

From: https://github.com/yagop/node-telegram-bot-api/pull/777

* Add JieJiSS contribution in Changelog

* Add sendPoll Test

* Add unpinAllChatMessages Support

* Add copyMessage support

* Add close and logOut Support

* Add Test + Minor fixes

* Update CHANGELOG

Update version 0.50.1

* Update Readme Bot API Badge

* Update Version to 0.51.0

* Bot API 5.1 support Improved Invite Links

- Added the method createChatInviteLink
- Added the method editChatInviteLink
- Added the method revokeChatInviteLink

* Update version to 0.52.0 and new tests

- Update Changelog
- New Test
- Update version to 0.52.0

* Add new messageTypes

-  voice_chat_started
-  voice_chat_ended
- voice_chat_participants_invited

* Update Changelog and add new MessageType

* New messageTypes and updates

Add support for new messageTypes:
  - chat_invite_link
  - chat_member_updated

Add support for new updates:
 - my_chat_member
 - chat_member

* Telegram Bot API 5.2 Support

* Update Changelog + readme

* Fix Changelog
2021-04-26 19:50:34 +03:00
Daniel Pérez Fernández
de76dcd2cb
Bot API 5.1: Support Improved Invite Links and new messageTypes (#859)
* Add new method sendPoll

* getMyCommands

* setMyCommands

* Update doc/api

* 1# Fix Test sendPhoto

The sendPhoto method does not support .gif files, use sendAnimation.

This fix remplace .gif file by .png

* CustomTitle and ChatPermissions support

setChatAdministratorCustomTitle
setChatPermissions

* Update Readme

Update Badge Telegram API Version

* Minor Fix and Fix setChatPhoto

The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution

* Minor Fix and Add Test

Fixed setChatPermissions

Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions

* Update Changelog and Package.json version

* Fix typos in Changelog

* Add support for poll_answer

From: https://github.com/yagop/node-telegram-bot-api/pull/777

* Add JieJiSS contribution in Changelog

* Add sendPoll Test

* Add unpinAllChatMessages Support

* Add copyMessage support

* Add close and logOut Support

* Add Test + Minor fixes

* Update CHANGELOG

Update version 0.50.1

* Update Readme Bot API Badge

* Update Version to 0.51.0

* Bot API 5.1 support Improved Invite Links

- Added the method createChatInviteLink
- Added the method editChatInviteLink
- Added the method revokeChatInviteLink

* Update version to 0.52.0 and new tests

- Update Changelog
- New Test
- Update version to 0.52.0

* Add new messageTypes

-  voice_chat_started
-  voice_chat_ended
- voice_chat_participants_invited

* Update Changelog and add new MessageType

* New messageTypes and updates

Add support for new messageTypes:
  - chat_invite_link
  - chat_member_updated

Add support for new updates:
 - my_chat_member
 - chat_member
2021-03-29 17:37:10 +03:00
Mohammed Sohail
28cd62e355
doc: add clear listener methods v0.51.0 2020-12-10 14:40:37 +03:00
Daniel Huber
ec7e61e041
feat: add clear listener methods (#834)
- by @daniel0611

Co-authored-by: Mohammed Sohail <sohailsameja@gmail.com>
2020-12-10 14:30:09 +03:00
砂糖梨子
3829e727aa
fix: send animation (#843)
-required param is 'animation'
2020-12-10 13:51:52 +03:00
Daniel Pérez Fernández
5d30b6a134
Telegram Bot API 5.0 Support (#835)
* Add new method sendPoll

* getMyCommands

* setMyCommands

* Update doc/api

* 1# Fix Test sendPhoto

The sendPhoto method does not support .gif files, use sendAnimation.

This fix remplace .gif file by .png

* CustomTitle and ChatPermissions support

setChatAdministratorCustomTitle
setChatPermissions

* Update Readme

Update Badge Telegram API Version

* Minor Fix and Fix setChatPhoto

The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution

* Minor Fix and Add Test

Fixed setChatPermissions

Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions

* Update Changelog and Package.json version

* Fix typos in Changelog

* Add support for poll_answer

From: https://github.com/yagop/node-telegram-bot-api/pull/777

* Add JieJiSS contribution in Changelog

* Add sendPoll Test

* Add unpinAllChatMessages Support

* Add copyMessage support

* Add close and logOut Support

* Add Test + Minor fixes

* Update CHANGELOG

Update version 0.50.1

* Update Readme Bot API Badge

* Update Version to 0.51.0
2020-12-10 13:47:22 +03:00
Leonardo Bloise (Blusa)
fc24d0dc4d
[Docs] How to set webhooks using express local server and NGROK (#824)
It's a guide to help new people how to set webhooks and test their bots using local server.
2020-09-16 18:20:56 +05:30
Davide Pastore
167e52c04a
[security] bump bl package to minver
- Related to https://github.com/advisories/GHSA-pp7h-53gx-mx7r
2020-09-16 18:17:43 +05:30
Mohammed Sohail
93eaad082c
test: update removeTextListener 2020-05-12 12:42:44 +05:30
Mohammed Sohail
917c20c2c7
release: v0.50.0 v0.50.0 2020-05-12 11:58:32 +05:30
Igor
7643551adc
Fix catch error while file not able download (#737) 2020-05-12 09:59:29 +05:30
German Smirnov
d853a18079
fix regexp compare (#783)
* fix regexp compare

* npm run doc

* docs: fix

Co-authored-by: Mohammed Sohail <sohailsameja@gmail.com>
2020-05-12 09:50:52 +05:30
pyg
b4309cf45a
src/telegram: Add request options in getFileStream (#771)
Here it's request unable to use proxy options
2020-05-12 09:39:17 +05:30
Ilan
1ca5e2b967
Update tutorials.md (#803) 2020-05-12 09:38:17 +05:30
Daniel Pérez Fernández
1bae9c2964
Add new method sendDice, getMyCommands, setMyCommands and more (#796)
* Add new method sendPoll

* getMyCommands

* setMyCommands

* Update doc/api

* 1# Fix Test sendPhoto

The sendPhoto method does not support .gif files, use sendAnimation.

This fix remplace .gif file by .png

* CustomTitle and ChatPermissions support

setChatAdministratorCustomTitle
setChatPermissions

* Update Readme

Update Badge Telegram API Version

* Minor Fix and Fix setChatPhoto

The Telegram Bots api has a bug that they are fixing and gives problems with the previous image. While they don't fix it, the image replacement is the fastest solution

* Minor Fix and Add Test

Fixed setChatPermissions

Test:
- sendDice
- getMyCommands
- setMyCommands
- setChatAdministratorCustomTitle
- setChatPermissions

* Update Changelog and Package.json version

* Fix typos in Changelog

* Add support for poll_answer

From: https://github.com/yagop/node-telegram-bot-api/pull/777

* Add JieJiSS contribution in Changelog

* Add sendPoll Test
2020-05-12 09:31:30 +05:30
Mohamed Nainar
c6a0eedc9a
Update README.md (#790) 2020-04-30 20:54:29 +05:30
Melroy van den Berg
8bf57c1275
example: update express example
bodyParser is built-in again. (#791)

See: https://stackoverflow.com/questions/47232187/express-json-vs-bodyparser-json/47232318
2020-04-30 20:52:00 +05:30
lgy
5169d79bd9 docs: add proxy usage reference
-refs: #766 
-by @97thjingba
2020-01-20 16:38:42 +05:30
Mohammed Sohail
667380f1de
test: skip sendContact
- rate limits still apply
2019-10-15 21:50:06 +05:30
Mohammed Sohail
5553ceecbb
release: tidy up
- remove appveyor badge
- restrict builds to main versions of node
- add npm badge
2019-10-15 21:38:49 +05:30
Mohammed Sohail
e66243a776
[Docs] Update documentation (#753)
* doc: update readme.md
2019-10-15 20:51:07 +05:30
Mohammed Sohail
1f1e46e01b
test: skip stopMessageLiveLocation
- unexplicable error that is probabilistic in natuu
2019-10-15 20:19:44 +05:30
Mohammed Sohail
690c26faa2
[Package] Bump to v.0.40.0 (#752)
* doc: update changelog

- support for v4. to v4.2

* doc: update license date to 2019

* pkg: bump npm package to 0.40.0
2019-10-15 15:33:30 +05:30
Mohammed Sohail
0613a1bb08
test: temporarily disable pr builds
ref: https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
2019-10-15 15:16:08 +05:30
Mohammed Sohail
7feb88464d
test: update test suite
- remove unecessary tests for node v5 and below
- fix tg side errors when running tests i.e. currency format
- enable force builds on pr
2019-10-15 15:03:20 +05:30
GochoMugo
a0aa87329f
test: Run tests on Node.js v10, v12 2019-05-07 16:25:27 +03:00
Gocho Mugo
0b8ca03b54
chore/mr: Merge MR #720 2019-05-07 16:23:25 +03:00
Mohammed Sohail
f1a044e88e
src: Support Bot API v4.2 2019-05-07 16:17:43 +03:00
Mohammed Sohail
0b476fe35d
Merge pull request #678 from alexandercerutti/master
Added node-telegram-operation-manager to community field
2018-11-05 11:31:05 +05:30
Alexander Cerutti
cf28a17654
Added node-telegram-operation-manager to community field 2018-11-04 23:34:18 +01:00
Sedric Heidarizarei
8a51b70028 Copyright Updated (#658)
* Update README/LICENSE.md

- Year to 2018
2018-11-02 11:12:25 +05:30
Mohammed Sohail
d6f5639768
Update badges (#667)
* Update README badges

- Update badge to reflect the current update (#625)
- Fix broken BitHound badge

* Update badges

- Replace coveralls with codecov
- Add new appveyor badge

* Fix minor typo
2018-11-02 11:09:48 +05:30
Mohammed Sohail Sameja
47bea20539
[Tests] Update
- Set max-len at 200
- Fix eslint errors
2018-10-31 21:34:24 +05:30
Mohammed Sohail
29e0038bf3
Merge pull request #627 from vito2005/patch-1
one more tutorial for node-telegram-bot-api

by @vito2005
2018-10-31 16:24:42 +05:30
Yago
d70442d746
Merge pull request #613 from mashed-potatoes/master
Remove bitHound Score
2018-10-30 22:52:20 +01:00
Yago
6e46f48606
Merge pull request #671 from kamikazechaser/fix/v4
[v4.0] Add tests and add minor improvement
2018-10-30 22:45:08 +01:00
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
Yago
11a6b221e9
Merge pull request #636 from sinchang-bot/patch-1
doc: fix typo
2018-10-12 12:01:04 +02:00
Yago
42b31fbc9e
Merge pull request #625 from kamikazechaser/api-v4
[API v4.0] Publish new methods and message types
2018-10-12 11:58:46 +02:00
Jeff Wen
ca7eee8b0c
doc: fix typo 2018-09-04 16:55:51 +08:00
vito2005
e207ef665b
one more tutorial for node-telegram-bot-api
using your module the bot can send sms templates
2018-08-10 12:01:44 +03:00
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
mashed-potatoes
8ef560160c
Remove bitHound Score 2018-07-09 05:59:15 +05:00