Telegram Bot Translate

Description

Ruby version 2.3.1

Gem:

  • Gem for connect to TelegramBot
gem 'telegram-bot-ruby'
  • Gem for connect to Google Translate
gem 'easy_translate'

Usage

First things first, you need to obtain a token for your bot.

$token_telegram = 'YOUR_TELEGRAM_BOT_API_TOKEN'

Second you need to obtain a token for your Google Translate

$token_google = 'YOUR_GOOGLE_TRANSLATE_API_TOKEN'

That’s it!