@@ -115,7 +115,7 @@ Command with arguments `/say <your message>`:
115
115
``` js
116
116
bot .on (/ ^ \/ say (. + )$ / , (msg , props ) => {
117
117
const text = props .match [1 ];
118
- return bot .sendMessage (msg .from .id , text, { reply : msg .message_id });
118
+ return bot .sendMessage (msg .from .id , text, { replyToMessage : msg .message_id });
119
119
});
120
120
```
121
121
@@ -284,7 +284,7 @@ Use module function.
284
284
285
285
##### ` keyboard([array of arrays], {resize, once, selective}) `
286
286
287
- Creates ` ReplyKeyboardMarkup ` keyboard ` markup ` object.
287
+ Creates ` ReplyKeyboardMarkup ` keyboard ` replyMarkup ` object.
288
288
289
289
##### ` button(<location | contact>, <text>) `
290
290
@@ -330,63 +330,63 @@ Use this method to send `answerList` to an inline query.
330
330
331
331
Use this method to get basic info about a file and prepare it for downloading.
332
332
333
- ##### ` sendMessage(<chat_id>, <text>, {parse, reply, markup, notify, preview }) `
333
+ ##### ` sendMessage(<chat_id>, <text>, {parseMode, replyToMessage, replyMarkup, notification, webPreview }) `
334
334
335
335
Use this method to send text messages.
336
336
337
- ##### ` forwardMessage(<chat_id>, <from_chat_id>, <message_id>, {notify }) `
337
+ ##### ` forwardMessage(<chat_id>, <from_chat_id>, <message_id>, {notification }) `
338
338
339
339
Use this method to forward messages of any kind.
340
340
341
341
##### ` deleteMessage(<chat_id>, <from_message_id>) `
342
342
343
343
Use this method to delete a message. A message can only be deleted if it was sent less than 48 hours ago. Any such sent outgoing message may be deleted. Additionally, if the bot is an administrator in a group chat, it can delete any message. If the bot is an administrator of a supergroup or channel, it can delete ordinary messages from any other user, including service messages about people added or removed from the chat. Returns * True* on success.
344
344
345
- ##### ` sendPhoto(<chat_id>, <file_id | path | url | buffer | stream>, {caption, fileName, serverDownload, reply, markup, notify }) `
345
+ ##### ` sendPhoto(<chat_id>, <file_id | path | url | buffer | stream>, {caption, fileName, serverDownload, replyToMessage, replyMarkup, notification }) `
346
346
347
347
Use this method to send photos.
348
348
349
- ##### ` sendAudio(<chat_id>, <file_id | path | url | buffer | stream>, {title, performer, duration, caption, fileName, serverDownload, reply, markup, notify }) `
349
+ ##### ` sendAudio(<chat_id>, <file_id | path | url | buffer | stream>, {title, performer, duration, caption, fileName, serverDownload, replyToMessage, replyMarkup, notification }) `
350
350
351
351
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
352
352
353
- ##### ` sendDocument(<chat_id>, <file_id | path | url | buffer | stream>, {caption, fileName, serverDownload, reply, markup, notify }) `
353
+ ##### ` sendDocument(<chat_id>, <file_id | path | url | buffer | stream>, {caption, fileName, serverDownload, replyToMessage, replyMarkup, notification }) `
354
354
355
355
Use this method to send general files.
356
356
357
- ##### ` sendSticker(<chat_id>, <file_id | path | url | buffer | stream>, {fileName, serverDownload, reply, markup, notify }) `
357
+ ##### ` sendSticker(<chat_id>, <file_id | path | url | buffer | stream>, {fileName, serverDownload, replyToMessage, replyMarkup, notification }) `
358
358
359
359
Use this method to send ` .webp ` stickers.
360
360
361
- ##### ` sendVideo(<chat_id>, <file_id | path | url | buffer | stream>, {duration, width, height, caption, fileName, serverDownload, reply, markup, notify }) `
361
+ ##### ` sendVideo(<chat_id>, <file_id | path | url | buffer | stream>, {duration, width, height, caption, fileName, serverDownload, replyToMessage, replyMarkup, notification }) `
362
362
363
363
Use this method to send video files, Telegram clients support ` mp4 ` videos (other formats may be sent as ` Document ` ).
364
364
365
- ##### ` sendVideoNote(<chat_id>, <file_id | path | url | buffer | stream>, {duration, length, fileName, serverDownload, reply, markup, notify }) `
365
+ ##### ` sendVideoNote(<chat_id>, <file_id | path | url | buffer | stream>, {duration, length, fileName, serverDownload, replyToMessage, replyMarkup, notification }) `
366
366
367
367
Use this method to send video messages.
368
368
369
- ##### ` sendVoice(<chat_id>, <file_id | path | url | buffer | stream>, {duration, caption, fileName, serverDownload, reply, markup, notify }) `
369
+ ##### ` sendVoice(<chat_id>, <file_id | path | url | buffer | stream>, {duration, caption, fileName, serverDownload, replyToMessage, replyMarkup, notification }) `
370
370
371
371
Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message.
372
372
373
- ##### ` sendLocation(<chat_id>, [<latitude>, <longitude>], {reply, markup, notify }) `
373
+ ##### ` sendLocation(<chat_id>, [<latitude>, <longitude>], {replyToMessage, replyMarkup, notification }) `
374
374
375
375
Use this method to send point on the map.
376
376
377
- ##### ` sendVenue(<chat_id>, [<latitude>, <longitude>], <title>, <address>, {foursquareId, reply, markup, notify }) `
377
+ ##### ` sendVenue(<chat_id>, [<latitude>, <longitude>], <title>, <address>, {foursquareId, replyToMessage, replyMarkup, notification }) `
378
378
379
379
Use this method to send information about a venue.
380
380
381
- ##### ` sendContact(<chat_id>, <number>, <firstName>, <lastName>, { reply, markup, notify }) `
381
+ ##### ` sendContact(<chat_id>, <number>, <firstName>, <lastName>, { replyToMessage, replyMarkup, notification }) `
382
382
383
383
Use this method to send phone contacts.
384
384
385
385
##### ` sendAction(<chat_id>, <action>) `
386
386
387
387
Use this method when you need to tell the user that something is happening on the bot's side. Choose one, depending on what the user is about to receive: * typing* for text messages, * upload_photo* for photos, * record_video* or * upload_video* for videos, * record_audio* or * upload_audio* for audio files, * upload_document* for general files, * find_location* for location data, * record_video_note* or * upload_video_note* for video notes.
388
388
389
- ##### ` sendGame(<chat_id>, <game_short_name>, {notify, reply, markup }) `
389
+ ##### ` sendGame(<chat_id>, <game_short_name>, {notification, replyToMessage, replyMarkup }) `
390
390
391
391
Use this method to send a game.
392
392
@@ -406,7 +406,7 @@ Use this method to get a list of profile pictures for a user.
406
406
407
407
Use this method to get basic info about a file and prepare it for downloading.
408
408
409
- ##### ` sendInvoice(<chat_id>, {title, description, payload, providerToken, startParameter, currency, prices, photo: {url, width, height}, need: {name, phoneNumber, email, shippingAddress}, isFlexible, notify, reply, markup }) `
409
+ ##### ` sendInvoice(<chat_id>, {title, description, payload, providerToken, startParameter, currency, prices, photo: {url, width, height}, need: {name, phoneNumber, email, shippingAddress}, isFlexible, notification, replyToMessage, replyMarkup }) `
410
410
411
411
Use this method to send invoices.
412
412
@@ -446,7 +446,7 @@ Use this method to edit text messages sent by the bot or via the bot (for inline
446
446
447
447
Use this method to edit captions of messages sent by the bot or via the bot (for inline bots).
448
448
449
- ##### ` editMessageReplyMarkup ` as ` editMarkup({chatId & messageId | inlineMsgId}, <markup >) `
449
+ ##### ` editMessageReplyMarkup ` as ` editMarkup({chatId & messageId | inlineMsgId}, <replyMarkup >) `
450
450
451
451
Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots).
452
452
0 commit comments