Plugins to complement and add new functionalities
Methods
# static anime(idChat, photo, messageError, messageNoImage)
Plugin to transform your selfie into an anime portrait using minivision photo2cartoon
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
photo |
string | Url, path to base64 image |
messageError |
string | Message to send in case of error |
messageNoImage |
string | Message to send in case of not receiving an image |
# static cartoon(idChat, photo, messageError, messageNoImage)
Plugin to transform your selfie into an cartoon portrait using
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
photo |
string | Url, path to base64 image |
messageError |
string | Message to send in case of error |
messageNoImage |
string | Message to send in case of not receiving an image |
# static coronavirus(idChat, search, title, rowsToDisplay, headers, filters, messageError, messageNoDataFound)
Plugin to obtain information on the coronavirus by countries, cases, deaths, etc.
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
search |
string | Search parameter (country, cases, deaths, etc) |
title |
string | Title to display in image |
rowsToDisplay |
number | Number of countries to show in the image |
headers |
Array.<string> | Name of the headers to display |
filters |
Array.<object> | Configuration of the filters to be able to search |
name |
string | Filter name |
values |
Array.<string> | Possible values that the user can enter |
messageError |
string | Message to send in case of error |
messageNoDataFound |
string | Message to send in case of not finding information |
# static lifehacks(idChat, language, messageError, messageBadLanguage)
Plugin to get videos from life hacks
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
language |
string | Language to search |
messageError |
string | Message to send in case of error |
messageBadLanguage |
string | Message to send when the indicated language is not supported |
# static meme(idChat, language, messageError, messageNoSubReddit, messageTypeNoSupport)
Plugin that allows you to send different memes from subreddits in English and Spanish
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
language |
string | Language to search memes (en / es) |
messageError |
string | Message to send in case of error |
messageNoSubReddit |
string | Message to send when no subreddits are found for the indicated language |
messageTypeNoSupport |
string | Message to send when the received meme is not supported |
# static movie(idChat, search, messageError, messageNoDataFound)
Plugin that allows you to obtain movies to watch online in different qualities
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
search |
string | Movie to search |
messageError |
string | Message to send in case of error |
messageNoDataFound |
string | Message to send when no movie is found |
# static music(idChat, search, messageError, messageNoDataFound, messageValidClientId)
Plugin to get a song in mp3 format directly from soundcloud
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
search |
string | Customer search parameter |
messageError |
string | Message to send in case of error |
messageNoDataFound |
string | Message to send in case of not finding information |
messageValidClientId |
string | Message to send when a clientId is not indicated in the initial configuration |
# static news(idChat, search, messageError)
Plugin to get news from the different rss sources that are configured
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
search |
string | Customer search parameter |
messageError |
string | Message to send in case of error |
# static translate(idChat, text, to, messageError)
Plugin that allows you to translate the desired text into any language
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
text |
string | Text to translate |
to |
string | Target language to translate |
messageError |
string | Message to send in case of error |
# static wiki(idChat, search, language, messageError, messageNoDataFound)
Plugin that allows the search of different things in wikipedia
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
search |
string | Search parameter to perform |
language |
string | Language in which to search |
messageError |
string | Message to send in case of error |
messageNoDataFound |
string | Message to send in case of not finding information |
# static youtube(idChat, search, messageError, messageNoDataFound)
Plugin that allows you to search for videos directly from YouTube
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
search |
string | Search parameter to perform |
messageError |
string | Message to send in case of error |
messageNoDataFound |
string | Message to send in case of not finding information |
# static zombie(idChat, photo, messageError, messageNoFace, messageNoImage)
Plugin that allows you to transform your selfie into a zombie
Parameters:
Name | Type | Description |
---|---|---|
idChat |
string | Chat id to send the new image to |
photo |
string | Url, path to base64 image |
messageError |
string | Message to send in case of error |
messageNoFace |
string | Message to send when a face is not detected in the image |
messageNoImage |
string | Message to send in case of not receiving an image |