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

Telegram notifications #9145

Open
Deilan opened this issue Jan 26, 2018 · 11 comments
Open

Telegram notifications #9145

Deilan opened this issue Jan 26, 2018 · 11 comments

Comments

@Deilan
Copy link

Deilan commented Jan 26, 2018

Please add a capability to notify via Telegram.

@BanzaiMan
Copy link
Contributor

What is Telegram?

@simi
Copy link
Contributor

simi commented Jan 26, 2018 via email

@fedemengo
Copy link

I would be indeed pretty cool

@yshalsager
Copy link

I'd like to see this feature also

@iranzo
Copy link

iranzo commented May 31, 2018

In jenkins it's available and it's very useful to get notification of succesful builds that are ready to be reviewed and commited

@d-Rickyy-b
Copy link

You can use @TravisCI_Telegam_Bot as a workaround - it works pretty well.

@Deilan
Copy link
Author

Deilan commented Jul 24, 2018

@d-Rickyy-b Better than nothing. But it couldn't be used in group chats and with private repos.

@d-Rickyy-b
Copy link

Hmm, you could also use a curl statement in your travis config like that:

curl -X POST https://api.telegram.org/bot$token/sendMessage -d chat_id=$groupID -d "text=Your build finished"

So that it sends out a message. I know still not as good as a native method by travis, but at least it would work :)

@iranzo
Copy link

iranzo commented Jan 31, 2019

https://core.telegram.org/bots It explains how to get the token, etc

@yshalsager
Copy link

yshalsager commented Feb 1, 2019

I've written a small python script which I use with my scripts for this case.
https://github.com/yshalsager/telegram.py
You need to add these lines in .travis.yml

 - wget -q https://github.com/yshalsager/telegram.py/raw/master/telegram.py
 - python3 telegram.py -t $bottoken -c $channel -M "Message here"

@vanyakosmos
Copy link

I've made little service that will allow to receive telegram notifications about builds. Just need to authenticate with telegram on https://travis-tg.herokuapp.com (optionally) and add webhook to .travis.yml. Or add bot to chat/start dialog and type /webhook to get your webhook url.

notifications:
  webhooks:
    - https://travis-tg.herokuapps.com/u/TELEGRAM_ID/force

bot: https://t.me/TravisCINotifierBot
repo: https://github.com/vanyakosmos/travis-tg-notifier
It can work with multiple repos, supports public and private builds (untested but signatures are checked against both travis configs) and can be used in group chats.

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

No branches or pull requests

8 participants