A
A
AlekseiFlis2019-03-02 18:58:21
Python
AlekseiFlis, 2019-03-02 18:58:21

Python. How to store data?

I want to write a function for a telegram bot that would send some message every day at a specific time for each user, depending on the time zone. But for this, I need to first know the chat ID, username and its time zone (for each person). The question is how then to store this data. Dictionary, databases, json, something else?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2019-03-02
@deliro

Depends on how many users and posts per day. If there are less than a million messages, at least store them somewhere. If there are less than a hundred thousand users, the same is true. Maybe even in a shelve

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question