mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
fix for prev
This commit is contained in:
parent
ff28f5cea5
commit
e78b0c1150
@ -62,8 +62,8 @@ class Bot(Model):
|
||||
return (await self.owner).telegram_id
|
||||
|
||||
async def is_promo(self):
|
||||
owner = await self.fetch_related("owner")
|
||||
return await owner.is_promo()
|
||||
await self.fetch_related("owner")
|
||||
return await self.owner.is_promo()
|
||||
|
||||
class Meta:
|
||||
table = 'bot'
|
||||
|
Loading…
Reference in New Issue
Block a user