Skip to content

Commit

Permalink
fixed #277
Browse files Browse the repository at this point in the history
  • Loading branch information
windka committed Oct 19, 2022
1 parent c313798 commit 545ef30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.

# [14.8.2] - 2022-10-19
### fixed editmessagemedia - [#277](https://github.com/windkh/node-red-contrib-telegrambot/issues/277)

# [14.8.1] - 2022-10-18
### replaced performance.now - [#276](https://github.com/windkh/node-red-contrib-telegrambot/issues/276)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-telegrambot",
"version": "14.8.1",
"version": "14.8.2",
"description": "Telegram bot nodes for Node-RED",
"dependencies": {
"bluebird": "^3.7.2",
Expand Down
3 changes: 2 additions & 1 deletion telegrambot/99-telegrambot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2674,9 +2674,10 @@ module.exports = function (RED) {
delete payload.media;
delete payload.fileOptions;

let telegramBot = this.config.getTelegramBot();

try {
const attachName = String(0);
let telegramBot = this.config.getTelegramBot();
const [formData, fileId] = telegramBot._formatSendData(attachName, media.media, media.fileOptions);
if (formData) {
opts.formData[attachName] = formData[attachName];
Expand Down

0 comments on commit 545ef30

Please sign in to comment.