Skip to content

Latest commit

 

History

History
108 lines (61 loc) · 3.12 KB

README.md

File metadata and controls

108 lines (61 loc) · 3.12 KB

Telegram-bot

Ruby wrapper for Telegram's Bot API.

Gem Version

Build Status Status Github Issues GitHub2 Pull Requests

This is Telegram_bot on telegrame-messenger with the name of @FloresFF_bot it's a translator bot in order to translate from English to French built with Ruby .And this is my capstone Ruby project

screenshot

Built with

-Ruby

The repository link in repl.it

Live Repo Link

How to Find the bot

• Click on the Link link

• In telegram, search for @FloresFF_bot

Installation

Install Ruby

We are going to use ruby program to write the code, it is necessary to install this program in your machine. In order to do so, Please read this ruby installation documentation and follow the instructions.

Install Telegrame

Choose you API

Getting Started

1- In your terminal run git clone https://github.com/rahalrazika/telegramebot.git

2- cd telegramebot

3- create a .env file

4- Copy the code in env_file.txt

5- If you want a new token go to your telegram account and search for @BotFather. Press start and send the command /newbot. You will get a reply with all your bots information including your TOKEN in it. In our case, you don't need to create a new token you can simply search for @FloresFF_bot in telegram app

screenshot

6- Run bundle -> To install all gems

Start the bot

Run bin/main.rb

Test with Rspec

  • Run gem install rspec -> to install rspec
  • Run rspec

How to use the bot

  • Run bin/main.rb

screenshot

  • Open bot discussion on telegram app

screenshot

Author

👤 Razika

Contributing

  • To contribute to this project:
  • Fork this repository & clone locally.
  • Create an upstream remote and sync your local copy.
  • create a new branch.
  • Push your code to your origin repository.
  • Create a new Pull Request .

Show your support

Give a ⭐️ if you like this project! ​

Acknowledgments