ResistorBot and CapacitorBot use Telegram API, so some metadata are inevitably collected.
This infos are not stored, but they are used to derive an anonymous user ID that permits to know how frequently and when the bot is used.
Down here I show the snippet of code responsible for analytics: ##On new message
...
f=open("analytics.tsv","a")
f.write("%s\t%s\n" % (sha1(bytes(str(msg['from']['id'])+str(msg['from']['first_name']),'utf-8')).hexdigest(),str(msg['date']) ) )
f.close()
Then the analytics.tsv file is given as an input to a python script that is able to get the important informations out of the register file.
Here an example of what I can see from a User: User
(username=5724b2f81d5417087fdd6598919f602431c53355,
count=36,
latest=15/07/2023)