File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -127,13 +127,13 @@ def main():
127127 states = {
128128 GENDER : [RegexHandler ('^(Boy|Girl|Other)$' , gender )],
129129
130- PHOTO : [MessageHandler ([ Filters .photo ] , photo ),
130+ PHOTO : [MessageHandler (Filters .photo , photo ),
131131 CommandHandler ('skip' , skip_photo )],
132132
133- LOCATION : [MessageHandler ([ Filters .location ] , location ),
133+ LOCATION : [MessageHandler (Filters .location , location ),
134134 CommandHandler ('skip' , skip_location )],
135135
136- BIO : [MessageHandler ([ Filters .text ] , bio )]
136+ BIO : [MessageHandler (Filters .text , bio )]
137137 },
138138
139139 fallbacks = [CommandHandler ('cancel' , cancel )]
Original file line number Diff line number Diff line change @@ -120,12 +120,12 @@ def main():
120120 custom_choice ),
121121 ],
122122
123- TYPING_CHOICE : [MessageHandler ([ Filters .text ] ,
123+ TYPING_CHOICE : [MessageHandler (Filters .text ,
124124 regular_choice ,
125125 pass_user_data = True ),
126126 ],
127127
128- TYPING_REPLY : [MessageHandler ([ Filters .text ] ,
128+ TYPING_REPLY : [MessageHandler (Filters .text ,
129129 received_information ,
130130 pass_user_data = True ),
131131 ],
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def main():
5656 dp .add_handler (CommandHandler ("help" , help ))
5757
5858 # on noncommand i.e message - echo the message on Telegram
59- dp .add_handler (MessageHandler ([ Filters .text ] , echo ))
59+ dp .add_handler (MessageHandler (Filters .text , echo ))
6060
6161 # log all errors
6262 dp .add_error_handler (error )
You can’t perform that action at this time.
0 commit comments