Giter VIP home page Giter VIP logo

telegram-bot-translator's Introduction

Telegram BOT - Translator

Telegram & BotFather

Deskripsi

BOT Telegram untuk melakukan translasi dari bahasa Inggris ke bahasa Jerman dengan menggunakan IBM Watson. Cek video penjelasan

NOTE: Anda perlu memasukan token BOT TELEGRAM anda pada file 'private/telegram/TOKEN.txt'

NOTE: Anda perlu memasukan url service translator IBM Watson anda pada file 'private/ibm_watson/URL.txt'

NOTE: Anda perlu memasukan token service translator IBM Watson anda pada file 'private/ibm_watson/TOKEN.txt'

Instalasi

  1. Install Composer
  2. Melalui command line di root folder project jalankan perintah
    $ composer install

Langkah-langkah menjalankan untuk testing, via bash/git bash

Link video turtorial bisa ditemukan disini

  1. php -S localhost:[PORT]
  2. ngrok http [PORT]
    (ngrok bisa didownload di sini)
  3. curl -d url=[GENERATED_LINK_HTTPS]/file_bot.php -X POST https://api.telegram.org/bot[TOKEN]/setWebhook

Langkah-langkah jika sudah naruh di hosting

  1. Upload ke hosting
  2. Set webhook melalui url browser
    https://api.telegram.org/bot[TOKEN]/setWebhook?url=https://[DOMAIN]/[LOKASI_FILE]
  3. Done

Menghapus Webhook

Untuk menghapus webhook bisa dengan input url berikut di browser:

https://api.telegram.org/bot[TOKEN]/setWebhook

telegram-bot-translator's People

Stargazers

 avatar

Watchers

 avatar  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.