Gifoli is a Telegram bot designed to fetch and share GIFs from GIPHY API. The bot uses the user's chat input as query parameter to search relevant GIFs from GIPHY.
This bot is built using the following technologies:
- Node.js: JavaScript runtime environment that executes JavaScript code outside a web browser.
- TelegramBot API: To interact with Telegram's bot API.
- Mongoose: An Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB.
- axios: A promise-based HTTP client for the browser and node.js.
- MongoDB: A source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas.
As of now, the bot successfully connects to the database using Mongoose and fetches GIFs from GIPHY API based on the user's text input. However, there were some connection issues with MongoDB which needs to be resolved.
Contributions to this project are welcomed. Whether it's improving the documentation, adding new features, reporting bugs or spreading the word. Any kind of help is appreciated!
-
Clone the repository:
git clone https://github.com/your-github-username/gifoli-telegram-bot.git
-
Install the dependencies:
npm install
-
Start MongoDB service on your machine.
-
Run the bot:
npm start
If you have any questions, feel free to reach out to me at bahadorifar.farzad@gmail.com