Telegram Bot - Utilizing the Same Username with Unique Nicknames for Friends

In Telegram, let’s consider a user named Jim Smith with a potential public username and a unique identifier. This individual is recognized by various nicknames among friends; for instance, one might see ‘Jimmm,’ another ‘My best friend,’ and yet another ‘J S’ in their contact lists or chats. The challenge arises when trying to send a group message via a bot, while mentioning this user so that each friend perceives the name in their preferred format. Is there a way to mention him in such a format that respects each friend’s nickname while sending the message? Thank you in advance!

In Telegram, the mention of a user is typically tied to their public username, not automatically adapting to individual contact nicknames. One approach is to utilize the bot to send personalized messages to each user in the group rather than a single group message. This way, when your bot sends a message, it can extract the preferred nickname from each user’s contact or a pre-defined list and address the user accordingly. Alternatively, you could explore Telegram bots that might offer advanced scripting possibilities to manage such features, though such functionality is often limited by Telegram’s inherent design.