How can i forward Message? #10

Closed
opened 2015-08-06 13:55:25 +00:00 by FullZero5 · 3 comments
FullZero5 commented 2015-08-06 13:55:25 +00:00 (Migrated from github.com)

Hi, how do I forward a text to a specific user?

bot.get(/Hi|hi|yuo|oh/, function(message) {  
  var gets = new Forward().from(@User);
  bot.send(gets);
});
Hi, how do I forward a text to a specific user? ``` javascript bot.get(/Hi|hi|yuo|oh/, function(message) { var gets = new Forward().from(@User); bot.send(gets); }); ```
eden-lane commented 2015-08-06 18:28:14 +00:00 (Migrated from github.com)

Hi @FullZero5 .
Here is an example:

bot.get(/Hi/hi/yuo/oh/, function (message) {
  var forward = new Forward()
    .from(message.chat.id) // chat where is original message located
    .message(message.message_id) // id of original message
    .to(message.chat.id) // chat id of recipient. Same chat in this example

  bot.send(forward);
})
Hi @FullZero5 . Here is an example: ``` javascript bot.get(/Hi/hi/yuo/oh/, function (message) { var forward = new Forward() .from(message.chat.id) // chat where is original message located .message(message.message_id) // id of original message .to(message.chat.id) // chat id of recipient. Same chat in this example bot.send(forward); }) ```
mdibaiee commented 2015-08-07 09:14:23 +00:00 (Migrated from github.com)

Hey, we have documentation

Thanks @edencore for answering him!

Hey, we have [documentation](https://github.com/mdibaiee/node-telegram-api/wiki/Type:-Forward) Thanks @edencore for answering him!
FullZero5 commented 2015-08-07 09:17:32 +00:00 (Migrated from github.com)

Thanks

Thanks
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: thereadme/node-telegram-api#10
No description provided.