MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / set_thumbnail

Method set_thumbnail

helper/database.py:58–59  ·  view source on GitHub ↗
(self, id, file_id)

Source from the content-addressed store, hash-verified

56 await self.col.delete_many({'_id': int(user_id)})
57
58 async def set_thumbnail(self, id, file_id):
59 await self.col.update_one({'_id': int(id)}, {'$set': {'file_id': file_id}})
60
61 async def get_thumbnail(self, id):
62 user = await self.col.find_one({'_id': int(id)})

Callers 2

removethumbFunction · 0.80
addthumbsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected