Forum

New Telegram Bot Pl...
 
Notifications
Retirer tout

New Telegram Bot Plugin

21 Posts
2 Utilisateurs
0 Reactions
11 {numéro}K Vu
Louis Heredero
(@baryhobal)
Posts: 49
Active Member
Début du sujet
 

Big News

First, I have made some progress on the bot:

  • You can now create questions and reply to them
  • A new command "/reference" let you display an element from their reference
  • Thanks to inline bots, you can also @ the bot and start typing a reference for a list of matching elements. You can choose one and it will display its details

Now for the second thing:
I finished creating a Github repository. I uploaded all the files and spent some time (maybe a lot of time ) to write a readme, changelog and installation instructions. In the future, I will post all the files on it but I will still make a post on the forum to keep you updated.

Although I've made a lot of progress this last two weeks, this project is still in development, with (several) other planned features. The code is also not optimal at all and very messy. I am going to refactor the entire bot in the near future, as stated in the todo list. So if you want a stable, clear and understanble script, you'll have to wait. I know you (babynus) have included this as a possible evolution for V9.2 (many thanks) but I don't know if I will be in time with the complete rewriting of the script. Maybe this wibbly wobbly piece of PHP is sufficient for your needs but don't hesitate to contact me to ask for explanations. I believe the refactored script will be more suitable for your reading though

That's it !

I hope this will help and please people, and that you will check out the repo

Have a nice day !

Baryhobal

PS: I did my best to respect the copyright law but it may be too much or not enough. Let me know if I did anything wrong, thx


 
Posté : 14 Avr PM 20:044
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Thanks for your contribution.

I posted a reference to your work (to the github repository) in the Download page, in section Contributions.
I also added you in the contributors list.

Possibly we'll wait for a stable version from you to integrate into ProjeQtOr parts that may be required in core of software.
We're not in a hurry and may wait to integrate in in V9.3...
Users who want to try it can follow your instructions that seam quite clear...
You did a great job.

Only remark I can tell a this poitn of analysis : I did not find how to use the bot (some user manual)

Regards.
 


 
Posté : 15 Avr PM 20:044
Louis Heredero
(@baryhobal)
Posts: 49
Active Member
Début du sujet
 

Hello everyone,

Here is a little update about the project. V5.0 is available on the github. It doesn't add much but you can now edit and add notes to elements.

I have now started the process of refactoring the whole bot script, rewriting it from scratch in a, hopefully, more structured and clearer way.
This will probably take me some time to finish (even if it's the summer holidays) but I will let you know when it's done.

That's it !

I hope you're having a nice day and see you soon for V6.0 !

PS: I know, the version numbering is not structured at all and pretty random. From V6.0 and after, I'll try to keep a consistent naming


 
Posté : 3 Juil PM 15:077
Louis Heredero
(@baryhobal)
Posts: 49
Active Member
Début du sujet
 

Big News: V6.0.0 is out !!!

I have finally finished the refactorization of the bot. Everything is now available in the Github repo.

What is new, you may ask. Well, here's a list of some of the changes:

  • Most importantly, clearer and more structured code (at least I hope)
  • Display templates: write your own custom messages to use when displaying elements
  • Summary templates: organize the summary messages displayed after creating an element and choose which fields to show
  • Translations: the bot now uses the personalized translations system, allowing internationalization of messages and buttons (french and english are already available)
  • Settings for the bot are no longer written in the script but can now be modified in the global parameters menu. You can also modify the command names
  • /reference and /afficher (display) have been combined into one command -> /chercher (search)

This version has not been tested extensively yet, but it should still work well (I would say ~98% reliability). If you find any bug, please let me know by creating an issue on Github.
Also, if you want to participate and translate the messages and button texts, please share it either here or on Github.

V6.0.0 can be considered as a beta version and should be relatively stable with no major changes planned for the moment. I hope this project will be helpful to the development of ProjeQtOr and to its community.

Finally, if you have any questions, suggestions or encounter any problem, don't hesitate to contact me either on Github or on this forum.

That's it ! Have a nice day !

EDIT: I forgot to precise, this has been developped for ProjeQtOr V9.2.1


 
Posté : 2 Oct PM 23:1010
Louis Heredero
(@baryhobal)
Posts: 49
Active Member
Début du sujet
 

Hello !

V6.0.1 is out

This versions fixes the issues that we have found in V6.0.0. There may still be some. If you find any, please report them on the github repo.

List of fixes:

  • "Leave empty" button when selecting a template (ticket creation) now works
  • "Leave empty" button when choosing a project (ticket creation) now works
  • Added translations for "telegramBotMsgFieldProj" and "telegramBotMsgInvalidFieldEstimatedWork"
  • When using the search command, if no display template is defined, a message is now displayed (instead of crashing)
  • When selecting a template/urgency/priority/criticality/..., only non-idle items are displayed

Next version should be V6.1.0 and should implement the following key features:

  • Possibility to add sub-tasks (point à traiter)
  • Correct use of projeqtor's habilitation system (for displaying and creating elements)

For the devs:
I realise now that I haven't really documented the "notification" part of the bot. Let me know if you would like me to highlight the changes I did to SqlElement.php and more generaly give you information about how it works
If feel like the current state of the bot would be a great addition to ProjeQtOr, but the changes planned for V6.1.0 also seem interesting.
I saw you put Ticket # 5359 in ProjeQtOr V9.4.0. I don't know when you will start developping (maybe/probably already started ?) but I should have finished the planned features for the end of November.

Here is the github repo again

I hope you all have a wonderful day
See you soon

Baryhobal

EDIT:
As it turns out, I needed to rethink a significant part of the creating process. This means that modularity will be further improved compared to V6.0.1.
Consequently, some minor changes will also be made, for example, questions will now use the same system of field choice as other elements (like tickets). The "name" field will now also be modifyable through the button menu.


 
Posté : 28 Oct AM 00:1010
Louis Heredero
(@baryhobal)
Posts: 49
Active Member
Début du sujet
 

Hello everyone

V6.1.0 is done

Main changes:

  • You can now create sub-tasks ("points à traiter") with the create command
  • You can configure which profile can use the create and search commands through habilitations
  • A major security breach has been fixed. Credentials are now required to access the script (basic http authentification)
  • Fixed issues when dislaying some elements' description (html tags were left rendering the text quite unreadable)
  • ProjeQtOr's access rights are now respected regarding creation and display of elements

Everything is in the github repository
If you find any errors, please let me know.

Due to other projects, the development will probably slow down quite a bit. I don't have any scheduled date for the next version. There will probably be a patch sooner or later if we find some bugs though.

Future possible features include:

  • displaying equipments
  • changing location of equipment
  • creating change requests
  • displaying reports
  • creating and displaying leaves
  • adding the option to create a telegram group when creating a new project and allowing the bot to be used inside of groups

Of course these will be split into multiple versions.

For the devs:
As I said in my last post, this is probably the most stable version as of now (until we find bugs at least).
I don't know how much of this you plan on implementing, if anything, but I hope that you will find this interesting and maybe take a look at it

I wish you all a pleasant day/night

Baryhobal


 
Posté : 14 Nov AM 00:1111
Page 2 / 2
Share:
Retour en haut