InstaFix icon indicating copy to clipboard operation
InstaFix copied to clipboard

Non Urgent: Using FxTikTok in Discord Bot

Open paulschoen opened this issue 1 year ago • 2 comments

Hey! I just wanted to give you a heads-up that I'm using your tool to build a Discord bot that fixes links for platforms like TikTok, Twitter and of course Instagram, which have poor embedding on Discord. It’s working great, and our private Discord uses InstaFix a lot but sometimes people forget to add dd. in the front. If you have any issues please let me know.

https://github.com/paulschoen/link-lurker/tree/main

image

paulschoen avatar Aug 25 '24 07:08 paulschoen

@paulschoen Hey I also made a bot that uses these services a while back and I would like to give you a quick tip that you can use to make the bot output look a bit more cleaner using markdown .

you can use an invisible character like this one (inside the quotes) "⠀" and append it to a hyperlink, so that the resulting message only shows the embedded content without showing double links.

so the message that the bot sends is [⠀](embeddedlink) like this (with the empty space in the brackets being the invisible character):

Screenshot 2024-10-16 at 5 30 52 PM

callbacked avatar Oct 16 '24 21:10 callbacked

I'm also using it in my Telegram bot (publicly available on my github for self hosting) but as a fallback method when instagrapi fails.

I don't know about discord, but for telegram you can't use a space in the markdown link to hide the link because tg consider that kind of msg as empty. The &nbsp (U+00A0) or the Braille Pattern Blank (U+2800; suggested above by @callbacked) don't work as well. What I found working for telegram is a character Hangul Filler (U+3164). Maybe it will be useful for someone else as well. Other than that it looks exactly the same as the answer suggested above - [ㅤ](link)

baatochan avatar Jan 29 '25 13:01 baatochan