1.1.0 • Published 2 years ago

@libs-scripts-mep/telegram-bot v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Telegram Bot

Biblioteca utilizada para transmitir mensagens dos scripts de teste para o telegram através de um bot.

Instalando

Abra o terminal, e na pasta raíz do script, execute:

npm i @libs-scripts-mep/telegram-bot

Desinstalando

Abra o terminal, e na pasta raíz do script, execute:

npm uninstall @libs-scripts-mep/telegram-bot

Atualizando

Abra o terminal, e na pasta raíz do script, execute:

npm uninstall @libs-scripts-mep/telegram-bot

Como utilizar

Realize a importação:

import TelegramBot from "../libs/telegram-bot.js" 

ou para funções específicas do bot mep

import TelegramMepBot from "../libs/telegram-bot-mep.js" 

Após isso basta invocar o método desejado

Métodos implementados

await TelegramBot.getUpdates()

await TelegramBot.sendMessage("message")

await TelegramBot.sendPhoto("https://i.imgur.com/HWpENJX.png")

await TelegramBot.sendDocument(["message"], "caption", "logTest.txt")

await TelegramMepBot.sendLogTest(Log.history, error, serialNumber)
1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago