2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-22 09:57:10 +00:00

Hotfix: tests + modify order src/telegram + docs (#988)

* test: stopPoll

* test: setChatStickerSet and deleteChatStickerSet

* refactor: src/telegram.js

* Remove legacy methods:
 - getChatMembersCount
 - getChatMembersCount
 - kickChatMember

* Remove mandatory param  “start_parameter” from sendInvoice, because actually is a optional param

* docs: Update docs API

* docs: Update

* fix: addStickerToSet

* fix: stringify

* refactor: And add deleteStickerFromSet + setStickerPositionInSet

* fix: eslint

* docs: Update changelog
This commit is contained in:
Daniel Pérez Fernández 2022-07-19 12:43:39 +02:00 committed by GitHub
parent 449f03f786
commit f50cf982c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3138 additions and 2887 deletions

View File

@ -7,7 +7,8 @@
"no-param-reassign": [2,{"props":false}], "no-param-reassign": [2,{"props":false}],
"max-len": [2, 200], "max-len": [2, 200],
"arrow-body-style": 0, "arrow-body-style": 0,
"comma-dangle": 0 "comma-dangle": 0,
"indent": ["error", 2]
}, },
"plugins": [ "plugins": [
"mocha" "mocha"

View File

@ -3,6 +3,31 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/). This project adheres to [Semantic Versioning](http://semver.org/).
## [0.59.0][0.59.0] - 2022-07-19
1. Remove dependencies: (@danielperez9430)
* Remove *bluebird* => Use NodeJS Native Promises
* Remove *depd* => Use node native deprecate util for warnings
* Remove contributor dev dependency and add list of contributors in the readme
2. Remove legacy methods: (@danielperez9430)
* getChatMembersCount
* kickChatMember
3. Docs: (@danielperez9430)
* Update the docs of functions
* Order functions follow the Telegram bot API docs in src/telegram.js
4. Fix: (@danielperez9430)
* addStickerToSet() -> Allow to send tgs_sticker + webm_sticker
* Remove mandatory param “start_parameter” from sendInvoice, because in the docs is a optional param
* Fix some tests
5. New Test: (@danielperez9430)
* deleteStickerFromSet
* setStickerPositionInSet
## [0.58.0][0.58.0] - 2022-06-22 ## [0.58.0][0.58.0] - 2022-06-22
1. Support Bot API v6.1: (@danielperez9430) 1. Support Bot API v6.1: (@danielperez9430)

2129
doc/api.md

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "node-telegram-bot-api", "name": "node-telegram-bot-api",
"version": "0.58.0", "version": "0.59.0",
"description": "Telegram Bot API", "description": "Telegram Bot API",
"main": "./index.js", "main": "./index.js",
"directories": { "directories": {
@ -31,7 +31,7 @@
"dependencies": { "dependencies": {
"array.prototype.findindex": "^2.0.2", "array.prototype.findindex": "^2.0.2",
"bl": "^1.2.3", "bl": "^1.2.3",
"debug": "^3.1.0", "debug": "^3.2.7",
"eventemitter3": "^3.0.0", "eventemitter3": "^3.0.0",
"file-type": "^3.9.0", "file-type": "^3.9.0",
"mime": "^1.6.0", "mime": "^1.6.0",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff