Use a text sharing site
To get around message size limitations, you can copy the algorithm into a document and share it via an online service like Pastebin, Gist, or Google Docs. Then, send the link to this document in the conversation.
Send the algorithm in stages
If the text is too long to send all at once, break it into several smaller parts and send them successively. This will allow the entire algorithm to be transmitted without exceeding the size limits.
Attach a file
If copying and pasting doesn't work, try attaching the algorithm as a text file. Make sure the format and size of the file are compatible with the platform's limitations.