|
|
|
@ -73,6 +73,8 @@ TelegramBot |
|
|
|
* [.sendChatAction(chatId, action)](#TelegramBot+sendChatAction) ⇒ <code>Promise</code> |
|
|
|
* [.sendChatAction(chatId, action)](#TelegramBot+sendChatAction) ⇒ <code>Promise</code> |
|
|
|
* [.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, name, address, [options])](#TelegramBot+sendVenue) ⇒ <code>Promise</code> |
|
|
|
|
|
|
|
* [.sendContact(chatId, phone_number, first_name, [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> |
|
|
|
@ -306,6 +308,38 @@ Use this method to send point on the map. |
|
|
|
| longitude | <code>Float</code> | Longitude of location | |
|
|
|
| longitude | <code>Float</code> | Longitude of location | |
|
|
|
| [options] | <code>Object</code> | Additional Telegram query options | |
|
|
|
| [options] | <code>Object</code> | Additional Telegram query options | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="TelegramBot+sendVenue"></a> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### telegramBot.sendVenue(chatId, latitude, longitude, name, addressm, [options]) ⇒ <code>Promise</code> |
|
|
|
|
|
|
|
Send venue. |
|
|
|
|
|
|
|
Use this method to send information about a venue. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Kind**: instance method of <code>[TelegramBot](#TelegramBot)</code> |
|
|
|
|
|
|
|
**See**: https://core.telegram.org/bots/api#sendVenue |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Param | Type | Description | |
|
|
|
|
|
|
|
| --- | --- | --- | |
|
|
|
|
|
|
|
| chatId | <code>Number</code> | <code>String</code> | Unique identifier for the message recipient | |
|
|
|
|
|
|
|
| latitude | <code>Float</code> | Latitude of location | |
|
|
|
|
|
|
|
| longitude | <code>Float</code> | Longitude of location | |
|
|
|
|
|
|
|
| name | <code>String</code> | Name of location | |
|
|
|
|
|
|
|
| address | <code>String</code> | Address of location | |
|
|
|
|
|
|
|
| [options] | <code>Object</code> | Additional Telegram query options | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### telegramBot.sendContact(chatId, phone_number, first_name, [options]) ⇒ <code>Promise</code> |
|
|
|
|
|
|
|
Send contact. |
|
|
|
|
|
|
|
Use this method to send phone contacts. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Kind**: instance method of <code>[TelegramBot](#TelegramBot)</code> |
|
|
|
|
|
|
|
**See**: https://core.telegram.org/bots/api#sendContact |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Param | Type | Description | |
|
|
|
|
|
|
|
| --- | --- | --- | |
|
|
|
|
|
|
|
| chatId | <code>Number</code> | <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 | |
|
|
|
|
|
|
|
| [options] | <code>Object</code> | Additional Telegram query options | |
|
|
|
|
|
|
|
|
|
|
|
<a name="TelegramBot+getFile"></a> |
|
|
|
<a name="TelegramBot+getFile"></a> |
|
|
|
|
|
|
|
|
|
|
|
### telegramBot.getFile(fileId) ⇒ <code>Promise</code> |
|
|
|
### telegramBot.getFile(fileId) ⇒ <code>Promise</code> |
|
|
|
|