BirthdaysWisherBot Do
BirthdaysWisherBot Documentation
Welcome to the official documentation for BirthdaysWisherBot! This guide provides a comprehensive overview of the bot's features, usage, and technical details. Whether you're an end-user or a developer looking to understand the bot's inner workings, this documentation has you covered.
Table of Contents
Introduction
Getting Started
Commands
Features
Personal Birthday Management
Group Birthday Management
Custom Birthday Messages
Notification System
Technical Details
Architecture
Database Schema
APIs Used
Troubleshooting
Contact and Support
Introduction
BirthdaysWisherBot (username: @BirthdaysWisherBot) is a Telegram bot designed to help you keep track of and celebrate birthdays. The bot allows users to add, delete, and view birthdays, ensuring you never miss a special day. With personalized birthday messages and notifications, the bot makes managing birthdays simple and enjoyable.
Getting Started
To start using BirthdaysWisherBot, follow these steps:
Add the Bot: Search for @BirthdaysWisherBot on Telegram and start a chat with the bot.
Set Up: Use the
/startcommand to begin. The bot will guide you through the initial setup.Commands: Familiarize yourself with the commands available to manage birthdays effectively.
Commands
Here are the primary commands available in BirthdaysWisherBot:
/start: Initializes the bot and provides a welcome message./addbirthday [Friend's Name] [DD-MM-YYYY]: Adds a friend's birthday (private messages only)./mybirthday [DD-MM-YYYY]: Adds your birthday to the group (group chats only)./deletebirthday [Friend's Name]: Deletes a friend's birthday (private messages only)./deletebirthday: Deletes your birthday from the group (group chats only)./birthdayList: Displays a list of all birthdays added./help: Provides information about the bot and its commands.
Features
Personal Birthday Management
In private chats, you can add birthdays for your friends and family. Use the /addbirthday command followed by your friend's name and birthday in DD-MM-YYYY format. For example:
To delete a birthday, use:
Group Birthday Management
In group chats, members can add their own birthdays using the /mybirthday command. For example:
To delete your birthday from the group, use:
Custom Birthday Messages
The bot sends personalized birthday messages to users. These messages are designed to make the recipient feel special on their birthday.
Notification System
The bot has a robust notification system that reminds users of upcoming birthdays. Notifications are sent:
On the day of the birthday.
Two days before the birthday.
Technical Details
Architecture
BirthdaysWisherBot is built using Node.js and the Telegraf library for interacting with the Telegram Bot API. The bot stores user data in a MongoDB database.
Database Schema
The bot uses two primary schemas for managing birthdays:
GroupBirthdaySchema: Stores birthdays for users in group chats.
PersonalBirthdaySchema: Stores birthdays for users in private chats.
APIs Used
The bot leverages the following APIs:
Telegram Bot API: For communication between the bot and users.
MongoDB: For data storage and retrieval.
Troubleshooting
If you encounter issues with BirthdaysWisherBot, try the following steps:
Check Bot Status: Ensure the bot is running and has access to the internet.
Verify Commands: Double-check that you're using the correct command format.
Database Connection: Ensure the MongoDB connection string is correct and the database is accessible.
Logs: Check the bot's logs for error messages that might indicate what went wrong.
Contact and Support
For support, bug reports, or feature requests, contact the developer:
Developer: Aakash Gupta
Email: gzatrop@mail.com
Thank you for using BirthdaysWisherBot! We hope it helps you celebrate every special day with joy and ease.
Last updated