Telegram Bot API: Chat Identifier Not Recognized in forwardMsg Request

When forwarding a message through the Telegram Bot API, an error occurs stating ‘target missing’ even though sendText works. Example:

https://api.telegram.org/bot{TOKEN_VALUE}/redirectMsg?target={TARGET_ID}&source={ORIGIN_ID}&msg_id={UNIQUE_ID}

In my experience, this error typically indicates that the method or parameters don’t exactly match what the API expects for message forwarding. The Telegram Bot API uses a specific method called forwardMessage, and the parameter names are chat_id (for the target) and from_chat_id (for the source) instead of target and source. A similar issue occurred for me when I wasn’t using the exact method name and parameters, which led to messages not being forwarded correctly. Reviewing the official documentation and updating the request accordingly should resolve the issue.

Based on my experience, the issue most likely arises from using method names and parameter identifiers that deviate from what Telegram expects. When I encountered a similar error, I discovered that replacing redundant parameter names with the correct ones, such as using chat_id and from_chat_id, was the solution. It is important to carefully cross-check any modifications to API parameters against the official documentation. This adjustment helped resolve the problem, and I found that adhering strictly to documented conventions is paramount for correct functionality.

hey, check if you using the right method name and parmeters. using forwardMessage with chat_id and from_chat_id instead of target/source fixed it for me. sometimes minor typos in the endpoint can mess things up, so double-check all details.