msg.send(message)
message
connection.on('message', msg => { msg.send('pong'); });
Send message.
msg.forward(peer)
peer
connection.on('message', msg => { msg.forward(msg.to.print_name); });
Forward current message to peer.
msg.reply(message)
connection.on('message', msg => { msg.reply('pong'); });
Reply to current message with message.
msg.deleteMsg()
Delete current message.
connection.on('message', msg => { msg.deleteMsg(); });
msg.sendImage(path)
path
connection.on('message', msg => { msg.sendImage('telegram.png'); });
Send image from path.
msg.sendDocument(path)
connection.on('message', msg => { msg.sendDocument('telegram.txt'); });
Send document from path.
service
event
reply_id
id
from
to
flags
out
unread
date
text
There was an error while loading. Please reload this page.