mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-24 02:47:43 +00:00
fix: Bug with docs
This commit is contained in:
parent
bbbc6cb8b8
commit
c6cb87ec12
@ -1545,8 +1545,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
* Use previously uploaded file via its file_id or specify a URL.
|
* Use previously uploaded file via its file_id or specify a URL.
|
||||||
* On success, the edited Message is returned.
|
* On success, the edited Message is returned.
|
||||||
*
|
*
|
||||||
* Note that you must provide one of chat_id, message_id, or
|
* Note that you must provide one of chat_id, message_id, or inline_message_id in your request.
|
||||||
* inline_message_id in your request.
|
|
||||||
*
|
*
|
||||||
* @param {Object} media A JSON-serialized object for a new media content of the message
|
* @param {Object} media A JSON-serialized object for a new media content of the message
|
||||||
* @param {Object} [options] Additional Telegram query options (provide either one of chat_id, message_id, or inline_message_id here)
|
* @param {Object} [options] Additional Telegram query options (provide either one of chat_id, message_id, or inline_message_id here)
|
||||||
@ -1571,7 +1570,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
const [formData] = this._formatSendData(
|
const [formData] = this._formatSendData(
|
||||||
attachName,
|
attachName,
|
||||||
media.media.replace('attach://', ''),
|
media.media.replace('attach://', ''),
|
||||||
media.fileOptions,
|
media.fileOptions
|
||||||
);
|
);
|
||||||
|
|
||||||
if (formData) {
|
if (formData) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user