E
E
enotov322020-04-26 20:52:00
Python
enotov32, 2020-04-26 20:52:00

Python VK Bot how to make registration date?

I made my bot, but I need to make it so that when writing a team profile, there was a date of registration of a person, can you tell me how to do this? (library Vk_api)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolay, 2020-04-26
@enotov32

Create a database, at the first message from a user, create a registration date and add it to the database along with the ID. And when the profile command is called, you read the data from the database and send it to the user.
I advise sqlite3, the simplest solution for a small database.

A
Alexander, 2020-04-26
@shabelski89

Add the variable red_date during the registration function call.

import time

reg_date = time.ctime()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question