rubenlagus/Deepthought

Send a Message to a Telegram User

chri1389 opened this issue · 1 comments

Hello,
I have import this project in Eclipse and I have modify the main parameters: APIKEY, APIHASH, PHONENUMBER and the Database MySQL parameters....

The project run well.

Now I have a question.

How can I modify the main class (Deepthought.java) to send a simple message to a specific user?

Thank you very much!

Best Regards

hi, you see my example

IKernelComm kernelComm = kernel.getKernelComm();
final IUser user = databaseManager.getUserById(kernelComm.getCurrentUserId());
if (user != null) {
	kernelComm.sendMessage(user, message);
}
kernelComm.sendMessage(user, message);