Skip to content

[node-telegram-bot-api] Add approveChatJoinRequest and declineChatJoinRequest functions#59672

Merged
typescript-bot merged 1 commit intoDefinitelyTyped:masterfrom
MysteryBlokHed:node-telegram-bot-api-join-fns
Apr 4, 2022
Merged

[node-telegram-bot-api] Add approveChatJoinRequest and declineChatJoinRequest functions#59672
typescript-bot merged 1 commit intoDefinitelyTyped:masterfrom
MysteryBlokHed:node-telegram-bot-api-join-fns

Conversation

@MysteryBlokHed
Copy link
Copy Markdown
Contributor

Related discussion: #59492

If changing an existing definition:

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Apr 3, 2022

@MysteryBlokHed Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners or DT maintainers

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 59672,
  "author": "MysteryBlokHed",
  "headCommitOid": "3b0fc69a94fa5425e207226d6f4dc21c7b9eaedd",
  "mergeBaseOid": "907e66cad0cd4fda0a7f0611e115b57df3060cb9",
  "lastPushDate": "2022-04-03T14:57:35.000Z",
  "lastActivityDate": "2022-04-04T00:53:25.000Z",
  "mergeOfferDate": "2022-04-04T00:52:50.000Z",
  "mergeRequestDate": "2022-04-04T00:53:25.000Z",
  "mergeRequestUser": "XC-Zhang",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "node-telegram-bot-api",
      "kind": "edit",
      "files": [
        {
          "path": "types/node-telegram-bot-api/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node-telegram-bot-api/node-telegram-bot-api-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "ammuench",
        "agadar",
        "Dabolus",
        "XC-Zhang",
        "adityathebe",
        "MiklerGM",
        "XieJiSS",
        "toniop99"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "XC-Zhang",
      "date": "2022-04-04T00:52:12.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1086886630,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label Apr 3, 2022
@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @ammuench @Agadar @Dabolus @XC-Zhang @adityathebe @MiklerGM @XieJiSS @toniop99 — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

Copy link
Copy Markdown
Contributor

@XC-Zhang XC-Zhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Looks good to me.

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner labels Apr 4, 2022
@XC-Zhang
Copy link
Copy Markdown
Contributor

XC-Zhang commented Apr 4, 2022

Ready to merge

@typescript-bot typescript-bot merged commit 6fc95a3 into DefinitelyTyped:master Apr 4, 2022
@MysteryBlokHed MysteryBlokHed deleted the node-telegram-bot-api-join-fns branch April 4, 2022 01:00
@MaxiStarling56
Copy link
Copy Markdown

MaxiStarling56 commented Apr 4, 2022

@MysteryBlokHed, @XC-Zhang i think there is a typo in the type definitions.


node-telegram-bot-api => /src/telegram.js:1282

  • approveChatJoinRequest (note the "u")

@types/node-telegram-bot-api => index.d.ts:1277

  • approveChatJoinReqest (note the missing "u")

trying to run the function as wanted by the type produce the following error:
TypeError: bot.approveChatJoinReqest is not a function


VSCode suggestion:
Schermata 2022-04-04 alle 20 51 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Owner Approved A listed owner of this package signed off on the pull request. Popular package This PR affects a popular package (as counted by NPM download counts). Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants