Skip to content

Commit

Permalink
Add contact-sales button to property navigation menu
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantGeekDev committed Jan 5, 2024
1 parent 995d29a commit fdc0497
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 51 deletions.
42 changes: 0 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

Intenteded to display real estate properties concisely via a Telegram Bot


[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=QuantGeekDev_PropertyGram-telegram-bot&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=QuantGeekDev_PropertyGram-telegram-bot)


## Features

- Built with TypeScript for static typing and enhanced code quality.
Expand All @@ -14,50 +12,10 @@ Intenteded to display real estate properties concisely via a Telegram Bot
- Easy-to-use script commands for compiling, starting, and managing the bot process.
- Prettier integrated for code formatting.

## Usage

After cloning the repository, you can use the following npm scripts:


- `compile`: Compiles the TypeScript files to JavaScript, placing the compiled files in the `dist` directory.
- `postcompile`: Copies the locales from the `src` directory to the `dist` directory.
- `bg:start`: Prepares the environment and starts the bot in the background using pm2.
- `bg:restart`: Restarts the bot service.
- `bg:logs`: Fetches logs for the bot, defaulting to the last 1000 lines.
- `start`: Compiles the TypeScript files and starts the bot.
- `lint`: Formats the code using Prettier.

## Installation

To use this project:

1. Ensure you have Node.js (version 4 or higher) and npm (version 2 or higher) installed.
2. Clone the repository.
3. Run `npm install` to install all the dependencies and devDependencies listed.

## Dependencies

- `@grammyjs/i18n`: For internationalization support.
- `dotenv`: To manage environment variables.
- `grammy`: The framework used to create the bot.
- `mongodb`: To interact with MongoDB databases.

## DevDependencies

Includes various types, ESLint configurations, Prettier, and TypeScript for linting, formatting, and compiling the code.

## Configuration

Modify the `.env` file to include your bot tokens and any other environment-specific configurations. Additionally, tailor the `src/locales` as needed for internationalization.

## License

This project is licensed under the GPL-3.0-or-later. Please ensure you comply with the license terms while using or modifying the template.

## Contributions

Contributions are welcome. Please fork the repository, make your changes, and submit a pull request.

---

This README provides a basic outline of the ts-tg-bot package. You can expand each section with more detailed information about configuration, usage, and development practices as needed for your particular bot implementation.
20 changes: 11 additions & 9 deletions src/menus/propertyMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ import { InlineKeyboard } from "grammy";

export const fullPropertyControlKeyboard = new InlineKeyboard()
.text("« Previous Property", "previous-property")
.text("Next Property » ", "next-property");
.text("Next Property » ", "next-property")
.row()
.text("Contact me about this property", "contact-sales");

export const nextPropertyControlKeyboard = new InlineKeyboard().text(
"Next Property » ",
"next-property"
);
export const nextPropertyControlKeyboard = new InlineKeyboard()
.text("Next Property » ", "next-property")
.row()
.text("Contact me about this property", "contact-sales");

export const previousPropertyControlKeyboard = new InlineKeyboard().text(
"« Previous Property",
"previous-property"
);
export const previousPropertyControlKeyboard = new InlineKeyboard()
.text("« Previous Property", "previous-property")
.row()
.text("Contact me about this property", "contact-sales");

0 comments on commit fdc0497

Please sign in to comment.