telegramlib.data

Data Management Module

This module provides functions for managing user-specific parameters and retrieving chat history within a Telegram bot environment. It allows you to set and get custom parameters for users as well as access and format their chat history according to various criteria.

Functions

get_chat([user, last, last_message, ...])

Get the chat history of a user.

get_param(key)

Get the value of a user custom parameter.

set_param(key, value)

Set the value of a user custom parameter.