diff --git a/README.md b/README.md index fb66182..c95dd15 100644 --- a/README.md +++ b/README.md @@ -346,6 +346,10 @@ Use this method to send text messages. Use this method to forward messages of any kind. +##### `copyMessage(, , , {notification})` + +Use this method to copy messages of any kind. + ##### `deleteMessage(, )` Use this method to delete a message. A message can only be deleted if it was sent less than 48 hours ago. Any such sent outgoing message may be deleted. Additionally, if the bot is an administrator in a group chat, it can delete any message. If the bot is an administrator of a supergroup or channel, it can delete ordinary messages from any other user, including service messages about people added or removed from the chat. Returns *True* on success. diff --git a/lib/methods.js b/lib/methods.js index 9b72edd..537cbde 100644 --- a/lib/methods.js +++ b/lib/methods.js @@ -29,6 +29,7 @@ const methods = { if (opt.resize === true) markup['resize_keyboard'] = true; if (opt.once === true) markup['one_time_keyboard'] = true; if (opt.remove === true) markup['remove_keyboard'] = true; + if (opt.persistent === true) markup['is_persistent'] = true; if (opt.selective) markup['selective'] = opt.selective; return markup; }, @@ -72,6 +73,10 @@ const methods = { arguments: ['chat_id', 'from_chat_id', 'message_id'] }, + copyMessage: { + arguments: ['chat_id', 'from_chat_id', 'message_id'] + }, + sendPhoto(chat_id, photo, opt) { return sendFile.call(this, 'photo', photo, opt, {chat_id}); },