mullwar / telebot

The easy way to write Telegram bots in Node.js
https://www.npmjs.com/package/telebot
MIT License
1.48k stars 270 forks source link

editMessageText conflicting documentation #191

Open nicktohzyu opened 3 years ago

nicktohzyu commented 3 years ago

According to the readme, editMessageText({chatId & messageId | inlineMsgId}, <text>) However, in my IDE (webstorm), the method appears to take editMessageText(text: String, form)

cikaldev commented 3 years ago

you can see the code, here.

editMessageText: {
    short: 'editText',
    arguments: (obj, text) => editObject(obj, {text})
},

i think the problem is coming from your IDE.