mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-28 21:07:39 +00:00
[doc] Update doc on TelegramBot#sendContact()
This commit is contained in:
parent
9f79ba8b3b
commit
578ad1fa13
@ -83,7 +83,7 @@ TelegramBot
|
|||||||
* [.getUserProfilePhotos(userId, [offset], [limit])](#TelegramBot+getUserProfilePhotos) ⇒ <code>Promise</code>
|
* [.getUserProfilePhotos(userId, [offset], [limit])](#TelegramBot+getUserProfilePhotos) ⇒ <code>Promise</code>
|
||||||
* [.sendLocation(chatId, latitude, longitude, [options])](#TelegramBot+sendLocation) ⇒ <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>
|
* [.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>
|
* [.getFile(fileId)](#TelegramBot+getFile) ⇒ <code>Promise</code>
|
||||||
* [.getFileLink(fileId)](#TelegramBot+getFileLink) ⇒ <code>Promise</code>
|
* [.getFileLink(fileId)](#TelegramBot+getFileLink) ⇒ <code>Promise</code>
|
||||||
* [.downloadFile(fileId, downloadDir)](#TelegramBot+downloadFile) ⇒ <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>
|
<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.
|
Send contact.
|
||||||
Use this method to send phone contacts.
|
Use this method to send phone contacts.
|
||||||
|
|
||||||
@ -469,8 +469,8 @@ Use this method to send phone contacts.
|
|||||||
| Param | Type | Description |
|
| Param | Type | Description |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| chatId | <code>Number</code> | <code>String</code> | Unique identifier for the message recipient |
|
| chatId | <code>Number</code> | <code>String</code> | Unique identifier for the message recipient |
|
||||||
| phone_number | <code>String</code> | Contact's phone number |
|
| phoneNumber | <code>String</code> | Contact's phone number |
|
||||||
| first_name | <code>String</code> | Contact's first name |
|
| firstName | <code>String</code> | Contact's first name |
|
||||||
| [options] | <code>Object</code> | Additional Telegram query options |
|
| [options] | <code>Object</code> | Additional Telegram query options |
|
||||||
|
|
||||||
<a name="TelegramBot+getFile"></a>
|
<a name="TelegramBot+getFile"></a>
|
||||||
|
@ -674,8 +674,8 @@ class TelegramBot extends EventEmitter {
|
|||||||
* Use this method to send phone contacts.
|
* Use this method to send phone contacts.
|
||||||
*
|
*
|
||||||
* @param {Number|String} chatId Unique identifier for the message recipient
|
* @param {Number|String} chatId Unique identifier for the message recipient
|
||||||
* @param {String} phone_number Contact's phone number
|
* @param {String} phoneNumber Contact's phone number
|
||||||
* @param {String} first_name Contact's first name
|
* @param {String} firstName Contact's first name
|
||||||
* @param {Object} [options] Additional Telegram query options
|
* @param {Object} [options] Additional Telegram query options
|
||||||
* @return {Promise}
|
* @return {Promise}
|
||||||
* @see https://core.telegram.org/bots/api#sendcontact
|
* @see https://core.telegram.org/bots/api#sendcontact
|
||||||
|
Loading…
x
Reference in New Issue
Block a user