soroush-bot-node-sdk
Version:
Soroush bot nodejs sdk
27 lines (22 loc) • 489 B
JavaScript
const SoroushBot = require("../src/SoroushBot");
const bot = new SoroushBot(process.env.BOT_TOKEN);
const to = "GrAsMSI1kgbGrza8OrWWyhaQrOt6J4oCbXBHtAWSaNaCNw7VnlPboGhYut1";
const filePath = "my_gif";
// Optional
const options = {
caption: "Caption for this gif"
// fileName,
// thumbnailUrl,
// imageWidth,
// imageHeight,
// fileSize,
// keyboard
};
bot.sendGif(to, filePath, options).then(
res => {
console.log(res);
},
err => {
console.log(err);
}
);