Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files from telegram are not reproduced on gitter #6

Open
xeon-zolt opened this issue Apr 15, 2018 · 4 comments
Open

Files from telegram are not reproduced on gitter #6

xeon-zolt opened this issue Apr 15, 2018 · 4 comments

Comments

@xeon-zolt
Copy link
Member

Files shared in telegram group are not reproduced in gitter group like documents pictures
I think that one solution can be to host the file and reproduce the link on gitter

@gabru-md
Copy link
Member

Telegram hosts these files for us. All we need to do is reproduce the link
I will get onto it

@Sprinting
Copy link
Member

@xeon-zolt @gabru-md looking into hubot and hubot-gitter2's code - the gitter adapter for hubot only supports the TextMessage class. It is possible to extend hubot's Message to handle other types of messages, find an example here

class TextMessage extends Message {
  // Represents an incoming message from the chat.
  //
  // user - A User instance that sent the message.
  // text - A String message.
  // id   - A String of the message ID.
  constructor (user, text, id) {
    super(user)
    this.text = text
    this.id = id
  }
...

and here

@gabru-md
Copy link
Member

@Sprinting can you do this?
Since we need people to contribute to this. Maybe you can help us with this issue ?
What say ? :)

@Sprinting
Copy link
Member

@gabru-md This task doesn't particularly interest me, and I'm busy with one other project I really want to finish first. I also suspect that this will require rewriting an adapter for hubot if you don't want to hack your way through hubot-gitter2

The comment was just because I was browsing through hubot's code to see if making it support multiple adapters simultaneously is feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants