elective-stereophonic
elective-stereophonic
Telegram singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client: Nxt 1.11.15

Pages: 1 2 3 [All]

Author Topic: Telegram  (Read 27451 times)

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Telegram
« on: June 27, 2015, 10:01:07 am »

Could someone build a Nxt plugin for us to use telegram messenger?

https://core.telegram.org/api

https://core.telegram.org/mtproto

Jimmy2011

  • Sr. Member
  • ****
  • Karma: +24/-19
  • Offline Offline
  • Posts: 329
    • View Profile
Re: Telegram
« Reply #1 on: November 01, 2015, 09:27:57 am »


It's a great idea.
Logged
NXT-LX5G-L63N-ST8S-9LVZY

xivba

  • Full Member
  • ***
  • Karma: +14/-2
  • Offline Offline
  • Posts: 127
    • View Profile
Re: Telegram
« Reply #2 on: November 01, 2015, 09:57:35 am »

Dedicated NXT Telegram channel built right into NXT client would be nice.
Logged
NXT-33DU-8Q49-R2LY-FQRTG

chevdor

  • Full Member
  • ***
  • Karma: +19/-0
  • Offline Offline
  • Posts: 166
    • View Profile
Re: Telegram
« Reply #3 on: November 15, 2015, 04:37:12 pm »

That´s great idea.
What kind of features do you think it should offer?
Logged
NXT-YCLA-V44V-USJK-3GPJD
BM-2cXnA5HdtsDttGaPEAJd1oYX3zMbiKDewV

farl4bit

  • Global Moderator
  • Hero Member
  • *****
  • Karma: +210/-45
  • Offline Offline
  • Posts: 3459
    • View Profile
    • Blockchain Twitter
Re: Telegram
« Reply #4 on: November 23, 2015, 07:01:27 am »

Great idea, is that even possible? Signal is an other chat program which is becoming popular, especially because Edwardo Snowman advice people to use it.
Logged

gaba

  • Jr. Member
  • **
  • Karma: +5/-2
  • Offline Offline
  • Posts: 54
    • View Profile
Re: Telegram
« Reply #5 on: November 23, 2015, 09:12:33 am »

Great idea, is that even possible? Signal is an other chat program which is becoming popular, especially because Edwardo Snowman advice people to use it.

US. Government Funded Your Favorite ‘NSA-Proof’ Apps
http://revolution-news.com/us-government-funds-favorite-nsa-proof-apps/
Logged

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #6 on: January 15, 2016, 10:45:33 am »

Ok, since still no one took up the initiative I will offer a bounty of 5.000 NXT to whoever has the skills.

My request is to transform the Telegram Desktop app (https://github.com/telegramdesktop/tdesktop) into a Nxt Plugin so that I can use it within the client. The Plugin should be Open Source so hopefully other developers will maintain it and make it NRS future proof/compatible.

Hopefully we will use the Arbitrary Message system as certified e-mail (https://www.youtube.com/watch?v=ycPv0eFJw-k) and Telegram as instant messaging app.

I mean only a blind person wouldn't see the potentials:

Arduino + NodeJS en SailsJS + Telegram API: https://www.youtube.com/watch?v=qM3_4FQjFIY
RaspberryPiTelegramControl: https://www.youtube.com/watch?v=wD1Dwkq1kHM

+ 15.000 NXT from Damelon
+ 15.000 NXT from abctc
******************************
Total 35.000 NXT
« Last Edit: April 05, 2016, 09:59:12 am by MrCluster87 »
Logged

capodieci

  • Hero Member
  • *****
  • Karma: +256/-19
  • Offline Offline
  • Posts: 1341
  • Tips go to DeBuNe Dev fund
    • View Profile
    • DeBuNe - Decentralised Business Network
Re: Telegram
« Reply #7 on: January 15, 2016, 11:18:29 am »

This would be AMAZING! :)
Logged
- Decentralised Business Network: DeBuNe -
Asset: 6926770479287491943 - Issuer: NXT-GQ27-DD53-YM6K-ER6HK
OTDocs.com - debune.org - nxtforum.org/debune - NEW: thesoundkey.com

Damelon

  • Administrator
  • Hero Member
  • *****
  • Karma: +792/-54
  • Offline Offline
  • Posts: 2314
    • View Profile
    • Nxt Inside
Re: Telegram
« Reply #8 on: January 15, 2016, 11:59:28 am »

Adding 15000 NXT to the bounty :)
Logged
Member of the Nxt Foundation | Donations: NXT-D6K7-MLY6-98FM-FLL5T
Join Nxt Slack! https://nxtchat.herokuapp.com/
Founder of Blockchain Workspace | Personal Site & Blog

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Telegram
« Reply #9 on: January 15, 2016, 12:22:22 pm »

Adding 15000 NXT to the bounty :)
+ another 15k NXT.

My request is to transform the Telegram Desktop app (https://github.com/telegramdesktop/tdesktop) into a Nxt Plugin so that I can use it within the client.
- shared here: https://bitcointalk.org/index.php?topic=345882.msg13560179#msg13560179
« Last Edit: January 15, 2016, 12:29:17 pm by abctc »
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

capodieci

  • Hero Member
  • *****
  • Karma: +256/-19
  • Offline Offline
  • Posts: 1341
  • Tips go to DeBuNe Dev fund
    • View Profile
    • DeBuNe - Decentralised Business Network
Re: Telegram
« Reply #10 on: January 15, 2016, 02:17:56 pm »

Adding 15000 NXT to the bounty :)
+ another 15k NXT.

My request is to transform the Telegram Desktop app (https://github.com/telegramdesktop/tdesktop) into a Nxt Plugin so that I can use it within the client.
- shared here: https://bitcointalk.org/index.php?topic=345882.msg13560179#msg13560179

IMO the very important aspect is that it should create an account matching the Nxt account, and log in with that one.

R
Logged
- Decentralised Business Network: DeBuNe -
Asset: 6926770479287491943 - Issuer: NXT-GQ27-DD53-YM6K-ER6HK
OTDocs.com - debune.org - nxtforum.org/debune - NEW: thesoundkey.com

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #11 on: January 15, 2016, 02:25:05 pm »

Exactly, but I don't want that through my public address you can read my messages. I would go with a token login generated with my passphrase. Like you can log to coinomat https://coinomat.com/login.php#login_nxt

The website string could be: telegram

capodieci

  • Hero Member
  • *****
  • Karma: +256/-19
  • Offline Offline
  • Posts: 1341
  • Tips go to DeBuNe Dev fund
    • View Profile
    • DeBuNe - Decentralised Business Network
Re: Telegram
« Reply #12 on: January 15, 2016, 02:33:26 pm »

Exactly, but I don't want that through my public address you can read my messages. I would go with a token login generated with my passphrase. Like you can log to coinomat https://coinomat.com/login.php#login_nxt

The website string could be: telegram

yes, obviously ! ;)

We implemented a system, for a DeBuNe client, that automatically does all the process (user creation and login) with wordpress.

Shouldn't be too hard :)

R
Logged
- Decentralised Business Network: DeBuNe -
Asset: 6926770479287491943 - Issuer: NXT-GQ27-DD53-YM6K-ER6HK
OTDocs.com - debune.org - nxtforum.org/debune - NEW: thesoundkey.com

Cassius

  • Hero Member
  • *****
  • Karma: +207/-18
  • Offline Offline
  • Posts: 2459
  • Rather be a pirate than join the navy
    • View Profile
Re: Telegram
« Reply #13 on: February 05, 2016, 11:41:57 am »

Looks pretty cool :) Watching.
Logged
I head up content for BitScan, crypto business hub.

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #14 on: April 06, 2016, 02:35:00 am »

...me and my big mouth... grumble...
« Last Edit: April 09, 2016, 03:23:16 am by devlux »
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #15 on: April 09, 2016, 03:25:17 am »

Ok guys, so here's the deal.

Wrapping Telegram Desktop for Web in the plugin API was a rather trivial process.
Once I fixed the issue with the plugin API in general it took all of about an hour to get Telegram's web client integrated.

In the course of doing so I uncovered problems.
First and foremost, Telegram has about 20 immediate javascript dependencies and another 40 or so that are lazy loaded, including a few from various and random content distribution networks, i.e. trackers.

Secondly the CSS from telegram literally stomps all over the NRS CSS so I had to strip that out completely.  The UI needs a lot of help without it's CSS, but that can be fixed by walking the CSS line at a time and sorting out which ones are really causing the problem.  Hopefully it's only one or two.

Javascript dependencies, I was able to strip down quite a bit because NRS uses some of the same dependencies such as jquery etc.  Got it down to about 10 or so, but it's still a giant wall of includes.

Unfortunately, Telegram uses it's own custom encryption library.
This encryption library as well as several others exist in the global name space and are overridding the ones provided by NRS.
This CAN be fixed via namespacing.  Basically I go in and find the conflicting functions and rename them, then go through and find every place that the old function was called, updating it to the new name.  It's complex, but mostly just time consuming, but I've faced worse.

Here's my problem though and why I'm bringing it to your attention.  In order to do this integration I had to do a deep dive into the code.
What I found just kind of shocked me.  Yes it works, but it's doing a lot of dangerous things.
Let me stress.  These things are not very dangerous if it's just you and a buddy having a chat.  But if your buddy sends you a specially formed message it would compromise your wallet.  If I remove that, then other pieces of this house of cards begin to fall down.

As soon as I saw that, I stepped back for a bit to think and do some research.  I'm a programmer, but it's not the main thrust of what I do professionally. 

Mainly I analyze things, poke holes in them, find ways around things.  In short I try to find ways to make things happen.  I had never heard of telegram before this, but I took the bounty because it seemed like something nice I could do for the community.  The community believes it's secure, so I let that drive my opinion.  Then I saw the code and I have to be honest, there just isn't any way I can think of to secure this.

I'm hardly alone in my opinion...
https://yalantis.com/blog/whats-wrong-telegram-open-api/

I agree with everything that guy says and he's only refering to the android version, I'd take it a step further.

Once I realized that their code was insecure I decided it might be a good idea to go back to the API docs and build my own implementation from scratch.
Maybe that could allow me to deliver on this.
Unfortunately, the API docs are written in such a way that you can't just read them and do an implementation.  It's a form of obfuscation.  They make it look like they've provided useful and important information, but it's not in a format that is designed for building a new implementation.

Interestingly, the bot API looks fine. 
https://core.telegram.org/bots/api#making-requests
That could be wrapped, but it's not really designed for a desktop chat, it's meant for remote control purposes.

The regular "core" API docs look like this...
https://core.telegram.org/method/users.getFullUser

What this does is define a custom binary protocol and the specification of that protocol is done in their own custom language.
Normally when you're specifying a binary protocol you specify it in c or protobuf syntax, these are considered standard.
The binary protocol makes a sort of sense, the amount of data you can send out via mobile push is limited, so they probably tried to accommodate that.
The normal way to do push messaging is to keep it very simple... You have X new messages and then have the app pull in the rest of the details off the server.

Because they diverged so much from best practices, Telegram really went lone wolf and the way they did it feels to me like they are intentionally obfuscating it.  There are two reasons I can think of for doing that.  Firstly maybe they don't want independent implementations.  It's more money in their pocket if they can charge a consulting fee.  I can respect that, but I'm not paying these guys after reading the code they did publish.  Secondly, it could just be a mindset.  If people feel like they can see the code, even though it might be out of their league, then they'll feel comfortable, in the meantime you can hide bugs and flaws behind a wall of impenetrable syntax.

There's a saying about this... "If you can't dazzle them with brilliance then baffle them with BS".

I read the docs, then I read the spec of the language they created to specify the api.  I have to be perfectly honest here, it just feels like an attempt at obfuscation in hopes of a paying gig.  It looks professional to a layman, but to a professional it looks like they're hiding something bad.

Understand I'm not saying they actually have a backdoor.  I'm simply saying that if I were going to hide one, this is one way I could think of to do it.
I presented this information to MrCluster and Damelon.  Between the two of them they have paid for over half the bounty, but then I realized that others in this community have paid into the bounty as well so I asked to bring it here for everyone to talk about.  MrCluster agreed, but Damelon was offline, nevertheless this seems like the type of thing he would support.

Here's the rules.  I will never knowingly release buggy or insecure code to any client.  Whether it's open source or paid, if it has my name attached to it it doesn't leave my desk until I feel certain it can't be exploited.  I cannot guarantee that with any option involving Telegram.

However the bounty is for a Telegram plugin.  So here's the potential solutions.

#1 I could namespace what I've got here, fix what I can and release it under a best effort basis.  The plugin would be limited to signin and check/send message functionality and I can bring in the contacts to make a sort of buddy list.  This would be moderately secure, but the thing is built like a house of cards, touch one thing and it can come crashing down on you.  I cannot guarantee security.

#2 I could toss the work done so far and implement the bot API from Telegram.  This is enormously more secure because it's a from scratch rewrite and doesn't have the house of cards effect.  The drawback is that much of the desktop functionality is missing.  Bot API is intended more for remote control style operations.  Chat can be done, but it's clunky and heavy.  Functionality would be limited to these methods...  https://core.telegram.org/bots/api#available-methods  and you'll need to get your own bot key  https://core.telegram.org/bots/api#authorizing-your-bot 

#3 We could forget Telegram and implement Slack.  Slack has a cleaner more functional API, chat is less clunky to implement.  Down side is that their API javascript is distributed via a CDN / tracker.  So it's not 100% secure, but the only thing a tracker would see is your refurl was localhost:7876 or whatever.  If we did this it would be possible to have instant messaging.  You could later add remote control functions to for instance create a slackchat tipbot.  But mostly slack is where all the cool kids are hanging out now, so you could pop in and get support from the community right there in your client.

#4 We could forget Telegram and slack and go with pubnub.  This would allow rapid signalling and messaging.  Essentially chat, remote control and things like balance updates coming into your phone.  I would ONLY be implementing basic chat and a buddy list, but the code is easy, open and extensible.  The drawback is that with PubNub you have to pay beyond a certain number of messages a month and it requires signing up for an API key with a credit card.  Also two people on separate API keys would be in segregated channels.  I use pubnub for communications between cash machines and backoffice services, I've found it to be highly reliable and secure, but for who knows how many users to send pictures of their cats I dunno if it would be appropriate.  We could get choked off.

In the interests of full disclosure, you should know that when I presented this information to Damelon & Mr Cluster I also presented a 5th option.  This option is to implement a high speed message passing api over the existing peer to peer network that we already have with NXT.  I called this solution NXT2NXT

It would be a sidechannel communications mechanism and would be using the addons API to open a couple of new ports.  I based the design on a retail inventory and point of sale system I architected a few years back that updated inventory levels in near real time even if there were internet connectivity issues.  However looking at the addons API, I think it's a whole separate project.  So I'm backing off that one for now.

If we used the slack API for chat and instant messaging, we could revisit NXT2NXT at a later date.  The telegram bot API is also somewhat similar but something about Telegram is giving me pause for concern.  However the Telegram Bot API would meet requirements best...
Quote
Hopefully we will use the Arbitrary Message system as certified e-mail (https://www.youtube.com/watch?v=ycPv0eFJw-k) and Telegram as instant messaging app.
Much better than any other option.

So I'm going to leave the way forward up to the community on this.  Damelon, MrCluster and abctc will have final say, but I'm interested in all thoughts from the community.
« Last Edit: April 09, 2016, 04:41:08 am by devlux »
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #16 on: April 09, 2016, 04:46:27 am »

Just some additional information to think about...

On further consideration, option #2 is the most straightforward and will give something secure while still being Telegram.
Option #1 is more feature rich, but opens security risks.
The others aren't telegram, but could be additional plugins done at a later time.

I could deliver #2 by Monday.  #1 I don't think is safe, #3 could be as soon as Wednesday and same with #4.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

Damelon

  • Administrator
  • Hero Member
  • *****
  • Karma: +792/-54
  • Offline Offline
  • Posts: 2314
    • View Profile
    • Nxt Inside
Re: Telegram
« Reply #17 on: April 09, 2016, 05:42:17 pm »

I would choose slackify.
I'd rather have a well known function now than an "if" later

Verstuurd vanaf mijn SM-G901F met Tapatalk

Logged
Member of the Nxt Foundation | Donations: NXT-D6K7-MLY6-98FM-FLL5T
Join Nxt Slack! https://nxtchat.herokuapp.com/
Founder of Blockchain Workspace | Personal Site & Blog

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #18 on: April 09, 2016, 07:44:36 pm »

Thanks, I'll let it run one more day.  Just to make sure there are no objections, then move forward with the majority.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Telegram
« Reply #19 on: April 09, 2016, 10:06:25 pm »

I believe that Telegram encrypts messages end-to-end. I think Slack doesn't use encryption. So Slack is non a good choice for Nxt (= cryptoplatfom) plugin in my opinion. It seems that  among popular messengers only WhatsApp does end-to-end encryption. So I vote for Telegram or WhatsApp. In any case (including the absence of plugin) I will pay at least 5k NXT for devlux's  Telegram investigations.
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #20 on: April 09, 2016, 10:39:22 pm »

I believe that Telegram encrypts messages end-to-end. I think Slack doesn't use encryption. So Slack is non a good choice for Nxt (= cryptoplatfom) plugin in my opinion. It seems that  among popular messengers only WhatsApp does end-to-end encryption. So I vote for Telegram or WhatsApp. In any case (including the absence of plugin) I will pay at least 5k NXT for devlux's  Telegram investigations.

If you want to do that, then I'll do them both, just as separate plugins.
The UI is the hard part (for me anyways) on Telegram Bot or Slackify. 
Once the UI work is done swapping the backend is not particularly difficult, especially if I use angular for it the whole thing.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #21 on: April 10, 2016, 07:07:04 am »

Well, let's go with slack first then. Nothing will prevent us to do a Telegram porting later on.

A security article about WhatsApp: https://threatpost.com/whatsapp-encryption-a-good-start-but-far-from-a-security-cure-all/117230/

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Telegram
« Reply #22 on: April 10, 2016, 08:47:07 am »

A security article about WhatsApp: https://threatpost.com/whatsapp-encryption-a-good-start-but-far-from-a-security-cure-all/117230/
- so? What exactly wrong with WhatsApp end-to-end encryption? The article says: "WhatsApp messages are secure in transit".

Re slack - personally I see no reason to implement non-encrypted public chat (not messenger) on cryptoplatform.
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

lurker10

  • Hero Member
  • *****
  • Karma: +168/-33
  • Offline Offline
  • Posts: 1334
    • View Profile
Re: Telegram
« Reply #23 on: April 10, 2016, 09:01:25 am »

A security article about WhatsApp: https://threatpost.com/whatsapp-encryption-a-good-start-but-far-from-a-security-cure-all/117230/
- so? What exactly wrong with WhatsApp end-to-end encryption? The article says: "WhatsApp messages are secure in transit".

Re slack - personally I see no reason to implement non-encrypted public chat (not messenger) on cryptoplatform.

WhatsApp is not open-source, its encryption hasn't been audited.

For an open-source, audited encrypted messenger, check Signal by WhisperSystems.
Logged
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Telegram
« Reply #24 on: April 10, 2016, 09:19:10 am »

WhatsApp is not open-source, its encryption hasn't been audited.
For an open-source, audited encrypted messenger, check Signal by WhisperSystems.
- hmmm.. that article says:
Quote
WhatsApp co-founders Brian Acton and Jan Koum are ardent supporters of protecting private communication... WhatsApp worked with Open Whisper Systems to develop the encryption technology and will use the not-for-profit’s Signal protocol for WhatsApp clients.
I think some Nxt users can trust WhatsApp co-founders...

IMHO if we need messenger plugin at all then it ought to be a popular messenger, like Telegram or WhatsApp or Viber.
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

lurker10

  • Hero Member
  • *****
  • Karma: +168/-33
  • Offline Offline
  • Posts: 1334
    • View Profile
Re: Telegram
« Reply #25 on: April 10, 2016, 09:27:49 am »

WhatsApp is not open-source, its encryption hasn't been audited.
For an open-source, audited encrypted messenger, check Signal by WhisperSystems.
- hmmm.. that article says:
Quote
WhatsApp co-founders Brian Acton and Jan Koum are ardent supporters of protecting private communication... WhatsApp worked with Open Whisper Systems to develop the encryption technology and will use the not-for-profit’s Signal protocol for WhatsApp clients.
I think some Nxt users can trust WhatsApp co-founders...

IMHO if we need messenger plugin at all then it ought to be a popular messenger, like Telegram or WhatsApp or Viber.

WhatsApp worked with WhisperSystems but it is not open-source, you have to trust the app. You can build Signal yourself with source code, few people do that but it's possible. It's the same difference as in crypto-currency, project's closed-source status is a deal breaker for many people. I agree it should be a popular messenger, I was just pointing out what is wrong with WhatsApp's encryption, it's not trust-free.
Logged
Run a node - win a prize! "Lucky node" project jar: NXT-8F28-EDVE-LPPX-HY4E7

ron

  • Full Member
  • ***
  • Karma: +5/-0
  • Offline Offline
  • Posts: 117
    • View Profile
Re: Telegram
« Reply #26 on: April 10, 2016, 12:35:23 pm »

https://medium.com/@Coinapult/tender-wallet-bot-the-bitcoin-wallet-broker-for-your-telegram-app-1b58543e09e3#.rq0f6zg9l

http://themerkle.com/coinapult-brings-bitcoin-to-telegram-users/


With the tender wallet bot you can send bitcoin through telegram chat interface. No security statements or holes mentioned.
Logged

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #27 on: April 10, 2016, 12:53:09 pm »

Yeah, Telegram is really cool and open source...

https://medium.com/@Coinapult/tender-wallet-bot-the-bitcoin-wallet-broker-for-your-telegram-app-1b58543e09e3#.rq0f6zg9l

http://themerkle.com/coinapult-brings-bitcoin-to-telegram-users/


With the tender wallet bot you can send bitcoin through telegram chat interface. No security statements or holes mentioned.

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #28 on: April 10, 2016, 01:08:23 pm »

after adding the bot @tenderwalletbot

Tender Wallet, [10.04.16 15:06]
Welcome to your personal Tender Bot! To create an account, enter one of the top five commands listed below and follow the prompts. Here is a list of available commands:

Tender Wallet, [10.04.16 15:06]
/balance - Your current balance
/send - Send Bitcoins
/receive - Receive Bitcoins (show address)
/autolock - Get a new address that automatically locks received bitcoins
/lock -  Lock your Bitcoins into USD/EUR/GBP
/unlock - Unlock your Bitcoins from USD/EUR/GBP
/history - Transactions history
/cancel - Cancel current command

/update_email - Update your email address, for notifications and account recovery
/currency - Set the currency to be used when estimating balance
/buy - Information about where to Buy & Sell bitcoins
/share - Invite your friends to use this bot
/about - About the telegram wallet bot
/help - Show the bot commands menu


Tender Wallet, [10.04.16 15:06]
Welcome to your personal Tender Bot! To create an account, enter one of the top five commands listed below and follow the prompts. Here is a list of available commands:

Tender Wallet, [10.04.16 15:06]
/balance - Your current balance
/send - Send Bitcoins
/receive - Receive Bitcoins (show address)
/autolock - Get a new address that automatically locks received bitcoins
/lock -  Lock your Bitcoins into USD/EUR/GBP
/unlock - Unlock your Bitcoins from USD/EUR/GBP
/history - Transactions history
/cancel - Cancel current command

/update_email - Update your email address, for notifications and account recovery
/currency - Set the currency to be used when estimating balance
/buy - Information about where to Buy & Sell bitcoins
/share - Invite your friends to use this bot
/about - About the telegram wallet bot
/help - Show the bot commands menu

Tender Wallet, [10.04.16 15:10]
Tender Wallet is a Telegram bot that allows users to operate a fully functional Coinapult (https://coinapult.com) ( https://coinapult.com/ ) wallet using simple commands through Telegram.

Send and receive bitcoins with other Telegram or bitcoin users. Lock and unlock the value of your bitcoin to local fiat currencies, including USD, EUR, and GBP. It's a convenient way to use bitcoin for individuals, businesses, and merchants.

For any questions, comments, or suggestions please contact us at support@coinapult.com. Have a great day! :)
« Last Edit: April 10, 2016, 01:12:14 pm by MrCluster87 »
Logged

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #29 on: April 10, 2016, 08:32:58 pm »

After the bounty increased I decided I'm doing Telegram chat using their bot interface AND I'm also doing a second "Slackchat".
2 different plugins since the code is around 90% the same.

I'm sorry someone else was able to integrate Telegram whatever with something or other and didn't feel there were security issues, but that's what tends to happen when you just import libs and don't look at what's in the box...
http://arstechnica.com/information-technology/2016/03/rage-quit-coder-unpublished-17-lines-of-javascript-and-broke-the-internet/

It's also possible they just wrapped the Telegram bot api and the bot api is a whole different kettle of fish from the desktop & mobile API, it's not what I'm complaining about.  It's limited but fine.

I never accused Telegram in general of being insecure.  I said their API docs do not allow one to independently implement a wrapper around their primary API.  And the code that they do have is not well written nor documented.  You basically have to trust their implementation and import it wholesale.  We can't do that here because it's stomping on NRS.  Also I do not trust, I read things and verify where I can.

I then went further and said that when I examined the code they have published, I found it doing a lot of really insecure stuff that probably isn't a big deal if it's you and a buddy having a chat.  But if your buddy were to send a message with a certain shape they could get your private key, if we integrated the telegram desktop.  It's also a house of cards, I don't see anyone using it as a base to build other things in the future.  Hence, independent implementation of the Telegram Bot API, in a simple, clear and precise manner. then update some references to produce a slack bot :)

Signal is a good option for a future plugin but from what I read it's mobile only.  Even their desktop which is a chrome app, requires linking to an android or ios device.  I would be very interested in finding out I'm wrong on that point.
WhatsApp is not on the table for this.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #30 on: April 13, 2016, 03:32:46 am »

Telegram plugin is nearing completion.  I should be on track for Wednesday or possibly Thursday.  This is #1 on my deliverables list for the week.  Slackchat plugin is #2, and should be about 2 days after the Telegram plugin drops.

Sorry I haven't had a lot of time to implement.  Got bogged down in the particulars of a few projects and had to do a reshuffle on some others as soon as Shapeshift was hacked.

Telegram will need testers, if you have a Telegram account please step up for testing and I'll get you an early drop.
Thanks!
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

farl4bit

  • Global Moderator
  • Hero Member
  • *****
  • Karma: +210/-45
  • Offline Offline
  • Posts: 3459
    • View Profile
    • Blockchain Twitter
Re: Telegram
« Reply #31 on: April 13, 2016, 06:41:09 am »

I can help testing.
Logged

asfd

  • Jr. Member
  • **
  • Karma: +23/-0
  • Offline Offline
  • Posts: 99
    • View Profile
Re: Telegram
« Reply #32 on: April 13, 2016, 06:51:27 am »

I want to test it, too.
Logged

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #33 on: April 13, 2016, 07:23:19 am »

Great! I can test it too  ;)

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Telegram
« Reply #34 on: April 13, 2016, 09:37:21 am »

me too, of course..
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #35 on: April 13, 2016, 07:04:57 pm »

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #36 on: April 13, 2016, 11:07:34 pm »

Bot Platform 2.0: https://telegram.org/blog/bots-2-0

OMG!  Seriously!  They change up the API the day I'm nearly finished.  Ugh, ok give me just a wee bit more to see what this is going to entail.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #37 on: April 14, 2016, 12:57:19 am »

Bot Platform 2.0: https://telegram.org/blog/bots-2-0

OMG!  Seriously!  They change up the API the day I'm nearly finished.  Ugh, ok give me just a wee bit more to see what this is going to entail.

I'm starting to wonder if this doesn't make more sense as an addon rather than a plugin.

Plugins require you to be logged into your machine and can present a nice UI over any information they can get it, but they are intended for you to be there lookng at them.  You leave the machine, shut the browser window etc and the plugin shuts off.

NXT Addons run as part of the java framework and do not require you to be logged in (near as I can tell). You can receive information that the NXT server has such as account details etc.  But you'd need to hand in a password to take actions.  Might be useful to notify you of events like balance changes, new messages etc though.

So question.  I've basically built a chat app on top of the current bot API, which looks now like it might need to be tossed into a bin. 
Do you guys want to chat via telegram with other telegram users, when logged into you own NXT, or do you want to have a bot that interfaces with NXT to provide you with info over Telegram. 

These are conflicting things to do. 

Still planning on Slackchat being an actual chat app though.
« Last Edit: April 14, 2016, 01:12:22 am by devlux »
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #38 on: April 14, 2016, 06:31:38 am »

Quote
do you want to have a bot that interfaces with NXT to provide you with info over Telegram.

can you elaborate more over this solution? what uses it could bring?

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Telegram
« Reply #39 on: April 14, 2016, 06:45:56 am »

Do you guys want to chat via telegram with other telegram users, when logged into you own NXT, or do you want to have a bot that interfaces with NXT to provide you with info over Telegram. 
- the former, I think.
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #40 on: April 14, 2016, 07:54:50 am »

Quote
do you want to have a bot that interfaces with NXT to provide you with info over Telegram.

can you elaborate more over this solution? what uses it could bring?

Basically, the same kinds of functionality that you listed a few posts ago.  Check balance, buy x, sell y, price of z

Difference is mostly that the new bot API really is intended for chatterbot type of applications, not as a surrogate for their custom mtproto chat system.
I can build either one, the changes to update what I've got to the newer API aren't really that much, but reading the new stuff I can see more clearly that this is intended more for remotecontrol types of scenarios than for swapping cat pics with your NXT buddies.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #41 on: April 14, 2016, 09:15:50 am »

ok, I choose this
Quote
chat via telegram with other telegram users, when logged into your own NXT

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #42 on: April 14, 2016, 11:49:18 pm »

ok, I choose this
Quote
chat via telegram with other telegram users, when logged into your own NXT

Alright sounds good.  I'll have this up on github in a day or so.  Just doing some clean up now.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #43 on: April 15, 2016, 06:59:27 am »

@Damelon and abctc

Hi guys can we create a brand new account with account control in place in order to place the bounty funds and then pay devlux?

I would like to make a video to document this use case "decentralized bounties  distribution".

It will be a follow up respect a business dividend distribution video I already made (https://www.youtube.com/watch?v=6r9zdVEj53Y&list=PLrOqCck6qd3aD39swhdYBPW8bRGrP4Mjs&index=3).

And a first test to my "flexible NXT supply" proposal (https://nxtforum.org/general-discussion/flexible-nxt-supply-proposal/).

Just keep it simple for now and use our 3 Nxt accounts. In the future we could test an account controlled by "voting;).

My Nxt address is: NXT-ZNYS-CQE8-ECSA-3FRHR

Let me know where to send the funds  8)
« Last Edit: April 15, 2016, 07:04:57 am by MrCluster87 »
Logged

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Telegram
« Reply #44 on: April 15, 2016, 10:59:28 am »

can we create a brand new account with account control in place in order to place the bounty funds and then pay devlux?

I would like to make a video to document this use case "decentralized bounties  distribution".
- great idea!

So basically someone (say I) should make an account with account control set as Mandatory Approval "by a certain number of accounts", with "Number of Accounts"=3 and "Accounts (Whitelist)"=<3 our accounts>, right?

But what if (hypothetically) one of us won't approve the tx to devlux under the pretext of "it's not a plugin that I expected" ? Wouldn't it better to set "Number of Accounts"=2 ?  so the rest two can "overvote" (still approve the tx)?

On the other hand, the account owner can not participate in voting, because he needs to initiate that tx (to devlux).

So here we come to conclusion that devlux himself ought to make an account with account control!


My account is NXT-UR5H-5X5B-JB7P-6EZBL

UPD:  and Damelon's account:
......
Damelon;
NXT-D6K7-MLY6-98FM-FLL5T
...
« Last Edit: April 15, 2016, 01:21:38 pm by abctc »
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

bob_ggg

  • Jr. Member
  • **
  • Karma: +9/-0
  • Offline Offline
  • Posts: 90
    • View Profile
Re: Telegram
« Reply #45 on: April 15, 2016, 02:53:00 pm »


On the other hand, the account owner can not participate in voting, because he needs to initiate that tx (to devlux).

So here we come to conclusion that devlux himself ought to make an account with account control!

In case of disagreement between devlux and the three of you funds would remain trapped forever in the account.
Logged

abctc

  • Hero Member
  • *****
  • Karma: +148/-13
  • Offline Offline
  • Posts: 1396
    • View Profile
Re: Telegram
« Reply #46 on: April 15, 2016, 06:48:58 pm »

On the other hand, the account owner can not participate in voting, because he needs to initiate that tx (to devlux).
So here we come to conclusion that devlux himself ought to make an account with account control!
In case of disagreement between devlux and the three of you funds would remain trapped forever in the account.
- valid point! Thanks.   So better this account to be created by one of us ...
Logged
Welcome to the Nxt generation of crypto!   Magis quam Moneta (More than a Coin)
"Do not worry, it is an attack" (c) Jean-Luc

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #47 on: April 15, 2016, 07:20:58 pm »

On the other hand, the account owner can not participate in voting, because he needs to initiate that tx (to devlux).
So here we come to conclusion that devlux himself ought to make an account with account control!
In case of disagreement between devlux and the three of you funds would remain trapped forever in the account.
- valid point! Thanks.   So better this account to be created by one of us ...

Which by the way would be the reason I've been trying to be as explicit as possible on what will and won't be delivered :D
Also bringing every body to the table when there is a material change of requirements and making sure we're all on board with it.
Frankly I don't care who pays or how I'm paid, just that the product is well liked enough that payment is tendered.

I've got the UI now, what I did was take this https://github.com/irontec/angular-bootstrap-simple-chat
I've factored that into a base plugin, so all that's needed now is the specifics of each chat providers to be wrapped into an angular service and presented to the chat interface.

This will allow you to customize and theme it, and it provides a base for others to build off from in the future.  They can just fork my "simplechat plugin" repo, tack on an angular service for the service provider specifics and *poof* instant chat app.

I was impressed with how clean the irontec guys kept their UI code.  Usually UI code is a nasty tangled mess to have to deal with.  This one has been rather pleasant in comparison.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #48 on: April 16, 2016, 12:54:14 am »

Nearly done, then discovered that the Telegram and Slackchat plugins won't cohabitate.

The problem here is they share dependencies and loading one breaks the other.

What I'm going to do is turn this into 3 plugins.
A base "angular-common" plugin that puts angular and other common bower included deps into the DOM, so they no longer need a separate import step, because it's dual imports that is breaking stuff here.

Once that's done, then it's just a matter of removing the included deps from the respective plugins and troubleshooting anything that breaks.

So here's the way this works. 

You'll have a base "angular-common" plugin which gives everything you need to include anything built on angular as a plugin later on. 
Therefore, you will need to install this plugin first.

There will also be a "simplechat" plugin, which you do not need to install.  It'll be available on our git repo. It's made available for future implementers so they don't have to bootstrap a chat style plugin from scratch.  This way, you can put out a bounty for twitter, facebook, irc or whatever, they can directly derive from this and only need to create a specific "chat" background service.  That will make future bounties easier to price and claim.

Finally there are 2 specific plugins, you can install either or both, but you need to understand that the way that plugins are loaded, only one can be live/visible at a time without a major refactor.  However their background services should continue to run as long as you are logged into your account.
 
A Telegram plugin based on the Telegram bot 2.0 API (you will be chatting as a bot, sorry about that, but the mtproto protocol implementations out there just are not giving me a good feeling).

and....
 
A slackchat plugin that will allow you to chat on the NXT slack.  If I can find a way to integrate it into the help menu system I will, but I'm not going to try to do anything extraordinary because that would make it more fragile should the devs change things.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

devlux

  • Sr. Member
  • ****
  • Karma: +67/-2
  • Offline Offline
  • Posts: 307
    • View Profile
    • Gemspace
Re: Telegram
« Reply #49 on: April 21, 2016, 05:26:36 am »

Slackchat plugin is now functional.
You should go to your NXT html/ui/plugins directory
then
Code: [Select]
git clone --recursive https://github.com/valortech/common_components.git
git clone --recursive https://github.com/valortech/slackchat.git

If plugins are enabled then as soon as you log into NXT you will be redirected to slack for authorization.  You need to grant it permissions, then you'll be redirected to the NXT landing page.  You'll need to log into NXT, but that will be the last time.  After that step is done, everything should just work.

Note that I ONLY tested this on the most recent versions of FireFox and Chrome.  I didn't even try any other browsers but there is no reason a modern up to date browser would have problems with this code.
Logged
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

MrCluster87

  • Hero Member
  • *****
  • Karma: +81/-3
  • Offline Offline
  • Posts: 855
    • View Profile
    • youtube
Re: Telegram
« Reply #50 on: April 21, 2016, 06:39:12 pm »

You need to install git before:

sudo apt-get install git

and then follow the instructions.

cryptomommy

  • Jr. Member
  • **
  • Karma: +3/-0
  • Offline Offline
  • Posts: 26
    • View Profile
Re: Telegram
« Reply #51 on: July 16, 2016, 03:24:35 pm »

Watching - looking forward to implementing this plugin :)
Logged
"Those who danced were thought to be quite insane by those who could not hear the music"

JZA

  • Full Member
  • ***
  • Karma: +18/-0
  • Offline Offline
  • Posts: 147
  • Looking for the NXT big thing
    • View Profile
Re: Telegram
« Reply #52 on: July 25, 2016, 02:02:51 am »

So is there a link to the telegram bot or will you guys just used the one that was provided by coinapult?
Logged
NXT stufff, NXT-TUAH-6PVY-S2KR-AW4RK

Ekaf

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 9
    • View Profile
Re: Telegram
« Reply #53 on: June 28, 2017, 04:53:11 pm »

Would love a good integration with telegram

san2salim

  • Full Member
  • ***
  • Karma: +6/-0
  • Offline Offline
  • Posts: 102
  • giving chance to humanity, in this world
    • View Profile
    • mystellar.org
Re: Telegram
« Reply #54 on: June 28, 2017, 07:18:48 pm »

me too, telegram more suitable than slack
Logged
▬▬▬▬▬▬  ▨ FRASINDO ▨  ▬▬▬▬▬▬
Official Partner of UBER & GRAB

m4kstep

  • Jr. Member
  • **
  • Karma: +10/-0
  • Offline Offline
  • Posts: 45
    • View Profile
Re: Telegram
« Reply #55 on: September 12, 2017, 05:55:53 pm »

Logged
Pages: 1 2 3 [All]
 

elective-stereophonic
elective-stereophonic
assembly
assembly