- Fork this repository (button at the top left corner);
- Clone your fork;
- Create a separate branch for your new feature with
git checkout -b <branch-name>
; - Implement the query and logic in the
analytics.py
file, following the model; - Create a command in
commands.py
and a respectiveCommandHandler
, adding it to theHANDLERS
list, following the model; - Commit your changes to your branch, push it to GitHub and open a PR.
message_id
: the ID of the message, specific to the chat where it was sent;chat_id
: the ID of the chat where the message was sent;user_id
: the ID of the user who sent the message;replied
: the ID of the message for which this one is a reply (null
, if it isn't a reply);length
: the length of the text contents in characters;vote
:'+'
or'-'
if the text contents of the message are just that, andnull
otherwise.
Please note that forwarded messages count as new messages. The user who forwarded it is the user who effectively sent it. Neither the original message nor the original sender are tracked.
The fields are user_id
, first_name
, last_name
, and username
. No further description seems necessary.
-
To implement a new query, refer to
dataset
's documentation; -
To implement a new command, refer to
python-telegram-bot
's documentation.