Latest stories

message_forward

  • Inputs
{
    "chat_id": "string: chat id excludes phone_number, user_name, user_id",
    "message_id": "list of dictionaries: Maximum 32: each has 'message_id' and 'local_id' as dict_key: message_id: integer, local_id: string",
    "phone_number": "phone number: example: +18885559977, excludes chat_id, user_name, user_id",
    "user_id": "integer: user id excludes phone_number, chat_id, user_name",
    "user_name": "string: between 4 to 40 characters: excludes phone_number, chat_id, user_id"
}

  • Errors
{
    "message_id_not_valid": "local_id not valid or not unique",
    "must_login": "user must be login",
    "no_valid_message_id": "message_id is wrong",
    "user_blocked": "user blocked by the one that tries to forward message to",
    "user_does_not_have_permisson": "user does not have permission to send message",
    "user_is_not_in_the_chat": "user is not member of this chat",
    "user_not_found": "user_id/phone_number/user_name is wrong",
    "wrong_chat_id": "chat_id is wrong"
}

  • Extra Description
Forward a list of messages from one chat to another

  • Sample
  • Url:
https://api.pantel.me/a/message_forward?phone_number=+18885559977&message_id=[{"message_id":"1547890085663066","local_id":"1589951154796510_1594631754122283"}]
  • Output:
                                {
    "chat_id": "0106b490d89eb7e303c5a4969f8c90909707",
    "result": {
        "1589951154796510_1594631754122283": 1547894529624450
    },
    "status": "success",
    "time": 1547894529.6459007
}