2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +00:00

[doc] Update doc on TelegramBot#sendContact()

This commit is contained in:
GochoMugo 2016-11-10 18:17:59 +03:00
parent 9f79ba8b3b
commit 578ad1fa13
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4
2 changed files with 6 additions and 6 deletions

View File

@ -83,7 +83,7 @@ TelegramBot
* [.getUserProfilePhotos(userId, [offset], [limit])](#TelegramBot+getUserProfilePhotos) ⇒ <code>Promise</code>
* [.sendLocation(chatId, latitude, longitude, [options])](#TelegramBot+sendLocation) ⇒ <code>Promise</code>
* [.sendVenue(chatId, latitude, longitude, title, address, [options])](#TelegramBot+sendVenue) ⇒ <code>Promise</code>
* [.sendContact(chatId, phone_number, first_name, [options])](#TelegramBot+sendContact) ⇒ <code>Promise</code>
* [.sendContact(chatId, phoneNumber, firstName, [options])](#TelegramBot+sendContact) ⇒ <code>Promise</code>
* [.getFile(fileId)](#TelegramBot+getFile) ⇒ <code>Promise</code>
* [.getFileLink(fileId)](#TelegramBot+getFileLink) ⇒ <code>Promise</code>
* [.downloadFile(fileId, downloadDir)](#TelegramBot+downloadFile) ⇒ <code>Promise</code>
@ -459,7 +459,7 @@ Use this method to send information about a venue.
<a name="TelegramBot+sendContact"></a>
### telegramBot.sendContact(chatId, phone_number, first_name, [options]) ⇒ <code>Promise</code>
### telegramBot.sendContact(chatId, phoneNumber, firstName, [options]) ⇒ <code>Promise</code>
Send contact.
Use this method to send phone contacts.
@ -469,8 +469,8 @@ Use this method to send phone contacts.
| Param | Type | Description |
| --- | --- | --- |
| chatId | <code>Number</code> &#124; <code>String</code> | Unique identifier for the message recipient |
| phone_number | <code>String</code> | Contact's phone number |
| first_name | <code>String</code> | Contact's first name |
| phoneNumber | <code>String</code> | Contact's phone number |
| firstName | <code>String</code> | Contact's first name |
| [options] | <code>Object</code> | Additional Telegram query options |
<a name="TelegramBot+getFile"></a>

View File

@ -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