GithubHelp home page GithubHelp logo

roxleopardo / otrs-ticket-notification-to-telegram-group Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mo-azfar/otrs-ticket-notification-to-telegram-group

0.0 0.0 0.0 53 KB

OTRS - Send a ticket notification to SPECIFIC TELEGRAM GROUP based on Queue upon ticket action. E.g: TicketQueueUpdate

License: GNU General Public License v3.0

Perl 100.00%

otrs-ticket-notification-to-telegram-group's Introduction

OTRS-Ticket-Notification-To-Telegram-Group

  • Built for OTRS CE v 6.0.x

  • Send ticket notification to SPECIFIC TELEGRAM GROUP based on Queue upon ticket action. E.g: TicketQueueUpdate

      Used CPAN Module:
      JSON::MaybeXS; #yum install -y perl-JSON-MaybeXS
      LWP::UserAgent;  #yum install -y perl-LWP-Protocol-https
      HTTP::Request::Common;	
    
  1. A telegram bot must be created by chat with @FatherBot and obtain the token via Telegram.

  2. Update the telegram bot token at System Configuration > TicketTelegramGroup::Token

  3. Update the telegram group chat_id in System Configuration > TicketTelegramGroup::ChatID

     Queue 1 Name => Group 1 Telegram Chat ID  
     
     Example:
     Misc => 1001186418888  
     an so on..
    
     Notes:
     * Add the bot (1) into the your telegram group and start the conversation with the bot first. 
     
     e.g: /hello @BOT_NAME    
     
     * By using  https://api.telegram.org/bot<TOKEN>/getUpdates , we can obtain the chat_id of the group    
    
  4. Admin must create a new Generic Agent (GA) with option to execute custom module.

     [Mandatory][Name]: Up to you.
     [Mandatory][Event Based Execution] : Mandatory. Up to you. Example, TicketQueueUpdate for moving ticket to another queue
     [Optional][Select Ticket]: Optional. Up to you.
     [Mandatory][Execute Custom Module] : Module => Kernel::System::Ticket::Event::TicketTelegramGroup
    
     [Mandatory][Param 1 Key] : Text1  
     [Mandatory][Param 1 Value] : Text to be sent to the user.
     [Optional][Param 2 Key] : Text2  
     [Optional][Param 2 Value] : Additional text to be sent to the user.
     
     #Support OTRS ticket TAG only. bold, newline must be in HTML code.  
     #Support <OTRS_NOTIFICATION_RECIPIENT_UserFullname>, <OTRS_OWNER_UserFullname>, <OTRS_RESPONSIBLE_UserFullname> and <OTRS_CUSTOMER_UserFullname> tag.
    

download.png

  1. To test the connection to telegram,

    shell > curl -X GET https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/getMe

otrs-ticket-notification-to-telegram-group's People

Contributors

mo-azfar avatar

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.