telegram-bot-api
                                
                                 telegram-bot-api copied to clipboard
                                
                                    telegram-bot-api copied to clipboard
                            
                            
                            
                        feat: add IsTextMention to MessageEntity
This works when we tag a member without a username, It is different from a mention.
for _, entity := range message.Entities {
	if entity.IsTextMention() {
		println(entity.User.ID)
	}
	if entity.IsMention() {
		println(message.Text[entity.Offset:entity.Offset+entity.Length])
	}
}