Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.2 - Announcement for Ardor (Nxt 2.0) is here. Ardor Tokens have been released!

Pages: 1 2 [3]  All

Author Topic: Telegram  (Read 6925 times)

devlux

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 308
    • View Profile
    • Gemspace
  • Karma: +67/-2
Re: Telegram
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.
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

MrCluster87

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 823
    • View Profile
    • youtube
  • Karma: +78/-2
Re: Telegram
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
  • ****
  • Offline Offline
  • Posts: 308
    • View Profile
    • Gemspace
  • Karma: +67/-2
Re: Telegram
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.
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

MrCluster87

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 823
    • View Profile
    • youtube
  • Karma: +78/-2
Re: Telegram
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 »

abctc

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1153
    • View Profile
  • Karma: +140/-13
Re: Telegram
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 »
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
  • **
  • Offline Offline
  • Posts: 90
    • View Profile
  • Karma: +9/-0
Re: Telegram
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.

abctc

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1153
    • View Profile
  • Karma: +140/-13
Re: Telegram
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 ...
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
  • ****
  • Offline Offline
  • Posts: 308
    • View Profile
    • Gemspace
  • Karma: +67/-2
Re: Telegram
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.
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

devlux

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 308
    • View Profile
    • Gemspace
  • Karma: +67/-2
Re: Telegram
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.
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

devlux

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 308
    • View Profile
    • Gemspace
  • Karma: +67/-2
Re: Telegram
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.
Evolution NEXT D.A.C.
NXTAE:3385321989487982138 (EVOLVE)

MrCluster87

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 823
    • View Profile
    • youtube
  • Karma: +78/-2
Re: Telegram
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
  • **
  • Offline Offline
  • Posts: 25
    • View Profile
  • Karma: +3/-0
Re: Telegram
July 16, 2016, 03:24:35 pm

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

JZA

  • Full Member
  • ***
  • Offline Offline
  • Posts: 143
  • Looking for the NXT big thing
    • View Profile
  • Karma: +17/-0
Re: Telegram
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?
NXT stufff, NXT-TUAH-6PVY-S2KR-AW4RK
Pages: 1 2 [3]  All