Code Monkey home page Code Monkey logo

Comments (12)

arcturial avatar arcturial commented on July 17, 2024

Hi

Have a look at the https://github.com/lukefx/hubot-telegram/tree/issue-21 branch. It contains an example/ folder with a script that can be used to deliver an image to a user.

from hubot-telegram.

Winor avatar Winor commented on July 17, 2024

Thanks for your reply, I've tried to use this script but the bot won't send any photo to chat and no log appears on console.

from hubot-telegram.

arcturial avatar arcturial commented on July 17, 2024

Are you addressing the bot directly or in a group chat?

from hubot-telegram.

Winor avatar Winor commented on July 17, 2024

I've tried to address the bot both ways but no luck

from hubot-telegram.

arcturial avatar arcturial commented on July 17, 2024

can you perhaps provide me with your bots name so I can try it?

from hubot-telegram.

Winor avatar Winor commented on July 17, 2024

my bot name is

from hubot-telegram.

arcturial avatar arcturial commented on July 17, 2024

Did you put the script in the scripts folder? Try adding a console.log command to the script when it initializes, to see if its actually registering with Hubot.

from hubot-telegram.

arcturial avatar arcturial commented on July 17, 2024

You should be seeing this in the logs (if you are running with DEBUG on).

DEBUG Message 'send photo' matched regex //send photo/i/

If you don't see this when typing send photo, the script is probably not loaded by Hubot.

from hubot-telegram.

Winor avatar Winor commented on July 17, 2024

the script is inside the scripts folder and it's loaded, the bot running with debug on and I can see this message on log, but it doesn't send any photo.
image

from hubot-telegram.

arcturial avatar arcturial commented on July 17, 2024

What version of the telegram adapter are you using? The telegram:invoke event is currently only available in the master branch and has not been tagged yet.

You can include this version in your package file like so:

"hubot-telegram": "lukefx/hubot-telegram#master"

from hubot-telegram.

Winor avatar Winor commented on July 17, 2024

oh, I wanna kill myself right now. I thought I was using the master branch. it works now.
Thank you so much , I really appreciate your work !

from hubot-telegram.

arcturial avatar arcturial commented on July 17, 2024

no problem ;)

I will tag the master branch soon then you can use the normal version constraints again.

from hubot-telegram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.