TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Telegram Bot Platform

261 pointsby thiagoperesalmost 10 years ago

23 comments

gioialmost 10 years ago
Just yesterday I was trying to get a bot working on the TextSecure platform. A vastly disappointing experience: almost not existing libraries, sparse and incomplete documentation, unstable protocol breaking without any kind of notice (<a href="https:&#x2F;&#x2F;github.com&#x2F;JavaJens&#x2F;TextSecure&#x2F;issues&#x2F;6" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JavaJens&#x2F;TextSecure&#x2F;issues&#x2F;6</a>, for example). And still no way to register without a phone, which would be amazing for this kind of project: <a href="https:&#x2F;&#x2F;github.com&#x2F;WhisperSystems&#x2F;TextSecure&#x2F;issues&#x2F;1085" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;WhisperSystems&#x2F;TextSecure&#x2F;issues&#x2F;1085</a><p>I think Telegram is succeeding in what TextSecure is failing: attracting a widespread community of developers. This is only a confirmation, in my opinion.<p>EDIT: and, by the way, while Telegram security is no good, I wonder why we cannot have both (security &amp; developer-friendliness)
评论 #9774795 未加载
评论 #9774330 未加载
评论 #9776620 未加载
sweisalmost 10 years ago
I briefly looked at Telegram&#x27;s crypto code a couple months ago. Here&#x27;s a few funny things I spotted:<p>Telegram&#x27;s message format uses ambiguous padding, so they have to try all padding lengths when validating a message: <a href="https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;src&#x2F;main&#x2F;java&#x2F;org&#x2F;telegram&#x2F;messenger&#x2F;HandshakeAction.java#L346" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;...</a><p>That loop leaks timing information, as does the &quot;Utilities.arraysEquals&quot; method it uses. I&#x27;m not sure if it opens up a timing attack, but it&#x27;s suspect: <a href="https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;src&#x2F;main&#x2F;java&#x2F;org&#x2F;telegram&#x2F;messenger&#x2F;Utilities.java#L283" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;...</a><p>There is another spot where they pad with zero bytes without any authentication. This may leave room to mess with the protocol: <a href="https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;src&#x2F;main&#x2F;java&#x2F;org&#x2F;telegram&#x2F;messenger&#x2F;HandshakeAction.java#L261" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;...</a><p>There are also some weird things throughout the code, like using SecureRandom.nextDouble() all over: <a href="https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;src&#x2F;main&#x2F;java&#x2F;org&#x2F;telegram&#x2F;android&#x2F;SecretChatHelper.java#L1531" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;...</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;src&#x2F;main&#x2F;java&#x2F;org&#x2F;telegram&#x2F;messenger&#x2F;HandshakeAction.java#L164" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;blob&#x2F;master&#x2F;TMessagesProj&#x2F;...</a>
评论 #9775284 未加载
yagopalmost 10 years ago
I&#x27;ve beeing developing this <a href="https:&#x2F;&#x2F;github.com&#x2F;yagop&#x2F;telegram-bot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yagop&#x2F;telegram-bot</a> for a year. Currently most Telegram Bots uses my proyect for building bots.<p>Now it&#x27;s deprecated and I&#x27;m really sad about that.
评论 #9775477 未加载
评论 #9775350 未加载
评论 #9774260 未加载
评论 #9781209 未加载
kh_hkalmost 10 years ago
OT:<p>Awesome, great, APIs are good.<p>Know what&#x27;s better? Open specifications and federated services. It&#x27;s called XMPP and if it&#x27;s not enough, then something better should be developed.<p>Is this the replacement of SMS? Not sure what people would have thought at the time if they could not send SMS to other mobile carriers. It saddens me even more to see public institutions moving their SMS infrastructure to the new &#x27;carriers&#x27;.<p>Protocols are not a new thing. Let&#x27;s not go back to the time were computers could not talk to each other.
评论 #9774542 未加载
评论 #9774466 未加载
评论 #9774553 未加载
评论 #9776440 未加载
评论 #9774418 未加载
_jomoalmost 10 years ago
This is nice, but I really wonder why they don&#x27;t focus on more important things. For example this issue I opened over a year ago, asking them to use end-to-end encryption by default and for group chats: <a href="https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;issues&#x2F;156" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;issues&#x2F;156</a><p>Probably because features are more important than security, sigh.
评论 #9774172 未加载
评论 #9774486 未加载
评论 #9774664 未加载
joeyspnalmost 10 years ago
&gt; Telegram is about freedom and openness – our code is open for everyone, <i>as is our API</i>.<p>Open <i>for usage</i> I guess. It&#x27;s a pity that the API (and server) source is still closed. The Bot Platform is a cool initiative anyways, so good luck!
评论 #9774470 未加载
colordropsalmost 10 years ago
Telegram is not truly open source. They utilize a pre-compiled library for the actual messaging code, as seen here:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;tree&#x2F;master&#x2F;TMessagesProj&#x2F;libs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;DrKLO&#x2F;Telegram&#x2F;tree&#x2F;master&#x2F;TMessagesProj&#x2F;...</a><p>They would like to have you believe otherwise through their PR efforts, but I wouldn&#x27;t trust them simply on the fact that they claim they are open source when they are not, and it&#x27;s not clear what&#x27;s going on in that binary lib. If they never claimed to be open source in the first place, it would be a different story.
评论 #9774767 未加载
评论 #9774837 未加载
评论 #9774474 未加载
评论 #9774473 未加载
评论 #9774696 未加载
gcmartinellialmost 10 years ago
I believe this an amazing move by Telegram. I firmly believe that open platforms tend to win in the long run.<p>Whatsapp should take the hint and open up their platform for developers... Curiously I was thinking about building bot-based services on their platform (largest user base in my country), but basically gave up after seing how closed they are to any initiative like this. Felt even worse after reading things like this: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;gcmartinelli&#x2F;status&#x2F;605776036358291456" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;gcmartinelli&#x2F;status&#x2F;605776036358291456</a>
评论 #9774743 未加载
daniel-levinalmost 10 years ago
Telegram is really cool. I have long thought about what additions and modifications I could make to my mobile texting program. Now I have to convince all my friends to move from Whatsapp.
scriptnullalmost 10 years ago
Great news ! Check out Github bot for sure people . I am already in love ! This feature is making me remember my own simple telegram bot that helped me to convey 1000 Happy birthdays to my friend in 15 mins. <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;scriptnull&#x2F;7877b404f33de2b7445a" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;scriptnull&#x2F;7877b404f33de2b7445a</a>
评论 #9774619 未加载
vijucatalmost 10 years ago
I woke up one night with the idea that if WhatsApp allowed API integration, it would so awesome : you could message DHL or UPS with your waybill tracking number, and they could push updates to you.<p>More interestingly, the WhatsApp text box then effectively becomes a REPL shell to a remote API : you could ask for stopping updates, updates only once a day, etc; If the remote server implements a DSL, you could do a LOT.<p>The possibilities were endless and exciting.<p>But I have a feeling WhatsApp &#x2F; their new owner are going to just let the opportunity pass by. If anyone at FB is reading this : guys, Business integration with WhatsApp is where the next $250 billion is. That&#x27;s how FB will get a permanent, maybe even irreversible, grip on mobile. Imagine every service business providing updates via WhatsApp by integrating with their backend.
评论 #9776030 未加载
hobarreraalmost 10 years ago
All the comments on this news item made me really want to try this out and see how it works.<p>I downloaded and installed the desktop version. Created an account with my phone number (okay: if I ever lose my phone, I&#x27;ll permanently lose access to my account!).<p>I see how to add contacts. I need their phone number. I don&#x27;t know my friend&#x27;s numbers. We use facebook, xmpp, email, lots of shit, but nobody still relies on SMS nowadays, and my phonebook is literally under 10 entries long (and I&#x27;m sure mum and dad won&#x27;t be using Telegram).<p>This reliance on old networks really kills it for me. IMHO, linking an account to a device that <i>can</i> get stolen or lost is also something I&#x27;ll never really understand.
task_queuealmost 10 years ago
Telegram is the company that ignores proven crypto standards, rolls their own crypto without any verification or audit, then offers a $200k bounty to &quot;break&quot; their crypto by requiring developers to work with an arm tied behind their back by reducing the types of attacks that could be made in the real world.<p>Seems MTProto is the same as its always been<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6931457" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=6931457</a><p><a href="http:&#x2F;&#x2F;www.cryptofails.com&#x2F;post&#x2F;70546720222&#x2F;telegrams-cryptanalysis-contest" rel="nofollow">http:&#x2F;&#x2F;www.cryptofails.com&#x2F;post&#x2F;70546720222&#x2F;telegrams-crypta...</a>
harryfalmost 10 years ago
Bananas or oranges anyone? <a href="http:&#x2F;&#x2F;telegram.me&#x2F;PollBot?startgroup=c4dd5512c96b2952a17396273a72e18f" rel="nofollow">http:&#x2F;&#x2F;telegram.me&#x2F;PollBot?startgroup=c4dd5512c96b2952a17396...</a>
评论 #9773954 未加载
Cieplakalmost 10 years ago
I really like that they embrace HATEOAS, e.g., &quot;what can this bot do?&quot;, even though the API might not be strictly RESTful (they call it an &quot;HTTP-based interface&quot;).
wodenokotoalmost 10 years ago
Can telegram be considered safe? I looked at eff&#x27;s guide to secure chat earlier today and was quite confused that it seeming,y scores full marks and not-full marks.<p><a href="https:&#x2F;&#x2F;www.eff.org&#x2F;secure-messaging-scorecard" rel="nofollow">https:&#x2F;&#x2F;www.eff.org&#x2F;secure-messaging-scorecard</a>
pbreitalmost 10 years ago
I&#x27;ve always been surprised something like this never really got going. I think the issue here is that it needs to be on message platforms that people actually use (iMessage, WhatsApp, Gchat, etc). Is it really not possible to hook in to those platforms?
评论 #9775508 未加载
评论 #9774450 未加载
orzflyalmost 10 years ago
Create you own bot with Node.js! <a href="https:&#x2F;&#x2F;github.com&#x2F;orzFly&#x2F;node-telegram-bot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;orzFly&#x2F;node-telegram-bot</a>
DLionalmost 10 years ago
I made a simple bot plugins based in Node.js. <a href="https:&#x2F;&#x2F;github.com&#x2F;dlion&#x2F;smagenBot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dlion&#x2F;smagenBot</a>
theladalmost 10 years ago
I&#x27;m guessing this was inspired by IRC eggdrop bots? Seem awfully similar, just different comms mechanism
ohitsdomalmost 10 years ago
I don&#x27;t have any experience with Telegram. Can anyone share how it compares with Slack?
评论 #9774188 未加载
avens19almost 10 years ago
This is great, nice work guys
ommunistalmost 10 years ago
PingBot for server health monitoring anyone? or we&#x27;ll just spam chats with Elisa clones?