From 578ad1fa136b48177108bfca0704a4afc7b4518e Mon Sep 17 00:00:00 2001 From: GochoMugo Date: Thu, 10 Nov 2016 18:17:59 +0300 Subject: [PATCH] [doc] Update doc on TelegramBot#sendContact() --- README.md | 8 ++++---- src/telegram.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 79b6c78..6babb33 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ TelegramBot * [.getUserProfilePhotos(userId, [offset], [limit])](#TelegramBot+getUserProfilePhotos) ⇒ Promise * [.sendLocation(chatId, latitude, longitude, [options])](#TelegramBot+sendLocation) ⇒ Promise * [.sendVenue(chatId, latitude, longitude, title, address, [options])](#TelegramBot+sendVenue) ⇒ Promise - * [.sendContact(chatId, phone_number, first_name, [options])](#TelegramBot+sendContact) ⇒ Promise + * [.sendContact(chatId, phoneNumber, firstName, [options])](#TelegramBot+sendContact) ⇒ Promise * [.getFile(fileId)](#TelegramBot+getFile) ⇒ Promise * [.getFileLink(fileId)](#TelegramBot+getFileLink) ⇒ Promise * [.downloadFile(fileId, downloadDir)](#TelegramBot+downloadFile) ⇒ Promise @@ -459,7 +459,7 @@ Use this method to send information about a venue. -### telegramBot.sendContact(chatId, phone_number, first_name, [options]) ⇒ Promise +### telegramBot.sendContact(chatId, phoneNumber, firstName, [options]) ⇒ Promise Send contact. Use this method to send phone contacts. @@ -469,8 +469,8 @@ Use this method to send phone contacts. | Param | Type | Description | | --- | --- | --- | | chatId | Number | String | Unique identifier for the message recipient | -| phone_number | String | Contact's phone number | -| first_name | String | Contact's first name | +| phoneNumber | String | Contact's phone number | +| firstName | String | Contact's first name | | [options] | Object | Additional Telegram query options | diff --git a/src/telegram.js b/src/telegram.js index 132c6b9..392792b 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -674,8 +674,8 @@ class TelegramBot extends EventEmitter { * Use this method to send phone contacts. * * @param {Number|String} chatId Unique identifier for the message recipient - * @param {String} phone_number Contact's phone number - * @param {String} first_name Contact's first name + * @param {String} phoneNumber Contact's phone number + * @param {String} firstName Contact's first name * @param {Object} [options] Additional Telegram query options * @return {Promise} * @see https://core.telegram.org/bots/api#sendcontact