🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

grammyuser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grammyuser

User management database middleware plugin for grammY!

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
10
100%
Maintainers
1
Weekly downloads
 
Created
Source

grammYUser

User management database middleware plugin for grammY framework!

Features

Middleware for grammY which lets you implement management of users using a database.

Supports a global blacklist feature through column 'isBlacklisted' (0 or 1) in the database.

Supports 'lastSeen' feature for users interacting with bots, along with a 'firstSeen' column storing dates pertaining to the first time a user messaged the bot to the last or recent time.

Stores user records such as Telegram user ID, username, firstName and lastName for user management.

Usage

  • grammYUser depends on the mysql2 package.
npm i mysql2

In working directory of your bot project.

  • Copy the plugin code from user.js and paste it in your Telegram bot code.

  • Run npm start to create or initiliaze the databalse.

License

MIT ©️ Zubin

Keywords

grammy

FAQs

Package last updated on 25 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts