I’m building a Telegram bot for managing applications. The bot sends applications as messages to potential performers. Later, a manager assigns an executor who might have lots of application messages already. I need to give the executor a clickable link to a specific application message in their private chat with the bot.
I’ve tried using different link formats from Telegram’s docs, like:
tg://resolve?domain=botname&post=123456
t.me/botname/123456
t.me/c/botname/123456
But when the executor clicks these links, they get errors like ‘Web application not found’ or ‘No permission to view this message’.
I’m sure the message ID and user ID are correct because I can update the message using the same info.
Is there a way to make this work? The executors use regular Telegram clients on Windows or Android.
Any ideas on how to solve this? It would really help streamline our application process. Thanks!
hey dancingbird, i ran into this too. sadly, no easy way to link private msgs
wat i did was add a search feature in my bot. like ‘/find APP123’. it finds the msg with that ID. not perfect but works ok. good luck with ur project!
I’ve dealt with a similar issue in my own Telegram bot project. Unfortunately, creating direct links to specific messages in private chats isn’t straightforward due to Telegram’s privacy restrictions.
One workaround I found effective was to include a unique identifier for each application in the message itself. For example, you could add a line like ‘Application ID: APP12345’ at the top of each message.
Then, instead of trying to link directly to the message, you can create a command in your bot that searches for messages containing that identifier. When an executor needs to find a specific application, they can use a command like ‘/find APP12345’ in their chat with the bot.
This approach requires some extra coding on the bot’s side to implement the search functionality, but it’s reliable and works within Telegram’s limitations. It also gives you more flexibility to potentially include additional features like showing application status or history.