Closed lukefx closed 8 years ago
Not a real issue but just an important thing, while sending messages to channels without a response or hear, all extra parameters should be strings or it will cause an exception.
Example:
post_to_channel = (message) -> envelope = room: "@mychannel" telegram: reply_markup: "Markdown" disable_web_page_preview: 'true' robot.send envelope, message
We can't use disable_web_page_preview: true
disable_web_page_preview: true
Could we modify the applyExtraOptions function to encode extra params to strings?
applyExtraOptions
@lukefx please review https://github.com/lukefx/hubot-telegram/pull/48
This started working for me without the "toString" casting. You still having issues on your side?
Not a real issue but just an important thing, while sending messages to channels without a response or hear, all extra parameters should be strings or it will cause an exception.
Example:
We can't use
disable_web_page_preview: true
Could we modify the
applyExtraOptions
function to encode extra params to strings?