Closed clintgallivan closed 3 years ago
Hi mate, Here is an example of use, the tutorial is in Spanish but you can easily translate it.
bot.onText(/\/hi/, function onLoveText(msg) {
bot.sendMessage(msg.chat.id, "Hello, World!");
});
https://github.com/yagop/node-telegram-bot-api/blob/master/examples/polling.js
I am trying to use the method (promoteChatMember) but I get back
error: [polling_error] {}
Here is my code
here is the telegram API docs: https://core.telegram.org/bots/api#promotechatmember
go to "promoteChatMember" for the method.
Thank you!!!