Comments (9)
The answer is to use in tg.js tg.sendMessage(channel.tgChatId, msg, {parse_mode: "Markdown"});
or whatever format you want.
from teleirc.
This would be neat as a parse as markdown config option, default can be on. Care to make a pull request? :)
from teleirc.
It appears that malformed markdown (like unclosed _
tags) can lead to errors while trying to send a message to Telegram.
So I now recommend using escaping html entities and using HTML
markdown instead.
from teleirc.
Maybe we shouldn't support this as it can also be very confusing (and cause errors possibly as you say)
from teleirc.
Alternatively there should be a command on the IRC side such as !md parsed-markdown-here
which is required as a prefix for parsing the message as markdown
from teleirc.
2016-05-07 14:40 GMT+03:00 Rasmus Eskola [email protected]:
Maybe we shouldn't support this as it can also be very confusing (and
cause errors possibly as you say)
For markdown let's abandon it, yes.
For HTML it seems fine once you escape special symbols.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#64 (comment)
from teleirc.
Think I'll close this then. Might do a markdown command at some point, as referenced from #29.
from teleirc.
What about HTML?
2016-05-07 15:00 GMT+03:00 Rasmus Eskola [email protected]:
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#64 (comment)
from teleirc.
We can have that as a separate command as well IMHO. I wouldn't necessarily want it to parse IRC messages as anything else than plain text by default.
from teleirc.
Related Issues (20)
- Telegram codeblocks should go into pastebin and teleirc might take care of it like images or stickers HOT 5
- Only oneway HOT 3
- "not found in config" errors after upgrade HOT 9
- TypeScript "rewrite"
- Social card for this repo heads to 404 error HOT 1
- Say something when files are uploaded even if mediaupload is disabled
- Optionally give IRC users Telegram links for stickers and files. HOT 2
- Infinite no chat_id set when group is created and updated to supergroup before enabling private message handling HOT 2
- Add support for CertFP
- SASL plain fails HOT 7
- Current irc framework does not handle rejoins
- IPFS support for file uploads
- "left_chat_participant", "new_chat_participant" and "new_chat_photo" messages should be disabled when config.soloUse is active
- "error: channel <channel> not found in config!" needs a more verbose log level
- teleirc might spam IRC channels with error messages
- use XDG_CONFIG_HOME
- Just show image url and don't serve the image HOT 2
- teleirc not relaying messages from other Telegram bots to IRC HOT 2
- Meta: is the Telegram group relayed to freenode #teleirc ?
- Is teleirc maintained? Should the repository point to matterbridge instead and be archived? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teleirc.