Socket
Socket
Sign inDemoInstall

slimbot

Package Overview
Dependencies
53
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.17 to 0.8.0

6

package.json
{
"name": "slimbot",
"version": "0.7.17",
"version": "0.8.0",
"description": "Simple and minimal Telegram Bot API for Node.js. No frills.",

@@ -19,3 +19,3 @@ "author": "Edison Chee <edisonchee@live.com>",

"engines": {
"node": "^10.6.0"
"node": "^10.8.0"
},

@@ -35,3 +35,3 @@ "license": "MIT",

"coveralls": "^3.0.2",
"eslint": "^5.1.0",
"eslint": "^5.2.0",
"istanbul": "^0.4.5",

@@ -38,0 +38,0 @@ "jasmine": "^3.1.0",

@@ -10,3 +10,3 @@ [![Build Status](https://travis-ci.org/edisonchee/slimbot.svg?branch=master)](https://travis-ci.org/edisonchee/slimbot)

Updated for [Bot API 3.6](https://core.telegram.org/bots/api#february-13-2018).
Updated for [Bot API 4.0](https://core.telegram.org/bots/api#july-26-2018).

@@ -13,0 +13,0 @@ ## Resources

@@ -183,2 +183,33 @@ 'use strict';

editMessageMedia(chatId, messageId, media, optionalParams, callback) {
let params = {
chat_id: chatId,
message_id: messageId,
media: media
};
if (typeof optionalParams == 'function') {
callback = optionalParams;
} else {
Object.assign(params, optionalParams);
}
return this._request('editMessageMedia', params, callback);
}
editInlineMessageMedia(inlineMessageId, media, optionalParams, callback) {
let params = {
inline_message_id: inlineMessageId,
media: media
};
if (typeof optionalParams == 'function') {
callback = optionalParams;
} else {
Object.assign(params, optionalParams);
}
return this._request('editMessageMedia', params, callback);
}
editMessageReplyMarkup(chatId, messageId, replyMarkup, callback) {

@@ -304,2 +335,21 @@ let params = {

sendAnimation(chatId, animation, optionalParams, callback) {
let params = {
chat_id: chatId,
animation: animation
};
let formData = {
animation: animation
};
if (typeof optionalParams == 'function') {
callback = optionalParams;
} else {
Object.assign(params, optionalParams);
}
return this._request('sendAnimation', params, formData, callback);
}
// Stickers

@@ -306,0 +356,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc