jenkinsci / telegram-notifications-plugin

This plugin allows you to send messages from Jenkins jobs to Telegram chat.
https://plugins.jenkins.io/telegram-notifications/
MIT License
72 stars 62 forks source link

Missing working example #40

Open cojack opened 5 years ago

cojack commented 5 years ago

Hi, I would like to use this plugin, but there is lack of example how this is suppose to work. I have spend few hours combine how this stuff can be configured together and Im still facing an issues that:

0) What's Telegram Bot name it's a username of bot with @ or without @? Or maybe it's display name but with suffix bot or without? 1) /sub command at telegram boot chat doesn't return anyhing 2) manual approval doesn't display any user after /sub 3) messages are not publish by bot

There is so manny missing information that I can not make any progress of how to use it.

Please @nikitabelonogov describe it a bit better.

Vintic commented 5 years ago

try to install precedent version 1.2.1 Works for me.

abdohossam5 commented 5 years ago

Even after installing 1.2.1. This plugin really needs a better documentation.

machadodev commented 5 years ago

Hey @cojack, how are you?

I had exactly the same problem.

I solved my problem clicking in: "Manage Jenkins" -> "Reload Configuration form Disk" and restarting Jenkins.

After that, Go again in telegram, click "Start" and "/sub".

This is how I sent a message e it worked:

Screenshot from 2019-06-13 17-06-13

Hope it helps. :)

mxkyb commented 5 years ago

for me manual approval still is not working. the approval list in Jenkins settings stays empty.

[edit] I tried reloading the settings and restarting Jenkins multiple times. also multiple tries with /sub command.

can you maybe post an example, how the configuration xml file should look? then I could approve it inside of the file.

[edit 2] what worked for me in the end:

It works, because in accept all mode, the subscriptions are added to the jenkinsci.plugins.telegrambot.TelegramBotGlobalConfiguration.xml file. then on change to manual subscription, the entries stay. btw.: this file is the place, where the telegram chat-id is stored.

4n70w4 commented 3 years ago

Actual!