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

Method get_caption

helper/database.py:68–70  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

66 await self.col.update_one({'_id': int(id)}, {'$set': {'caption': caption}})
67
68 async def get_caption(self, id):
69 user = await self.col.find_one({'_id': int(id)})
70 return user.get('caption', None)
71
72 async def set_prefix(self, id, prefix):
73 await self.col.update_one({'_id': int(id)}, {'$set': {'prefix': prefix}})

Callers 2

delete_captionFunction · 0.80
see_captionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected