Closed paluser closed 4 years ago
There are examples: https://github.com/calico-crusade/palringoapi-ts/blob/master/example/src/Test.ts
You need to make sure your email and password are correct.
I tested it with the latest release of the package and the following code is working as expected:
var pal = require('palringo-ts');
var email = ""; //Put your bot's email address here
var password = ""; //Put your bot's password here
var bot = pal.PalBot();
bot.On.LoginSuccess = function (user) { console.log('User logged in: ', user); };
bot.On.LoginFailed = function (reason) { console.log('Login Failed: ', reason); };
bot.On.GroupMessage = function(message) {
bot.groupMessage(message.group.id, 'hello world');
};
bot.login(email, password);
I'm closing this due to lack of a response. If it is still a problem, please let me know.
i install : npm i palringo-ts -d then in my js file write:
var pal = require('palringo-ts');
var bot = pal.PalBot();
var client = pal.Client;
bot.On.LoginSuccess = function (user) { console.log('User logged in: ', user); };
bot.On.LoginFailed = function (reason) { console.log('Login Failed: ', reason); };
bot.login('email', 'password');
bot.groupMessage(18134470,'hello world')
//this line not workclient.prototype.messaging.groupMessage(18134470,'hello world')
//this line not work alsoSo how can i send a group message?