From cb509ba4db5fee0a6f1808d5c8115054cf0dedc0 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 6 Dec 2017 21:27:57 +0100 Subject: [PATCH] Accept optional keyword arguments --- compiler/api/template/class.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/api/template/class.txt b/compiler/api/template/class.txt index 482148ca..8fa495c6 100644 --- a/compiler/api/template/class.txt +++ b/compiler/api/template/class.txt @@ -8,7 +8,7 @@ from pyrogram.api.core import * class {class_name}(Object): ID = {object_id} - def __init__(self{arguments}): + def __init__(self{arguments}, **kwargs): {fields} @staticmethod