Skip to content

Commit 435732a

Browse files
authored
Merge pull request #151 from MarcoBuster/hotfix/permissions-save
Hotfix: user permission save
2 parents 4b468a8 + 8098cf2 commit 435732a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

botogram/objects/chats.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,14 @@ def __init__(self, user, chat):
391391
if chat.type not in ("group", "supergroup"):
392392
raise RuntimeError("This chat is not a group or a supergroup!")
393393
# Accept also an instance of `User`
394-
self._chatid = chat.id
394+
self._chat_id = chat.id
395395
self._api = chat._api
396396
if isinstance(user, User):
397397
self._user = user.id
398398
else:
399399
self._user = user
400400
infouser = self._api.call("getChatMember", {
401-
"chat_id": self._chatid,
401+
"chat_id": self._chat_id,
402402
"user_id": self._user},
403403
expect=ChatMember)
404404

@@ -441,8 +441,8 @@ def __exit__(self, exc_type, exc_val, exc_tb):
441441

442442
def save(self):
443443
arguments = {
444-
"chat_id": self.chatid,
445-
"user_id": self.user
444+
"chat_id": self._chat_id,
445+
"user_id": self._user,
446446
}
447447
modify = False
448448

0 commit comments

Comments
 (0)