Skip to content

Commit 80ebfaa

Browse files
committed
fix: lint
1 parent 469777d commit 80ebfaa

3 files changed

Lines changed: 2 additions & 79 deletions

File tree

examples/echo.py

Lines changed: 0 additions & 63 deletions
This file was deleted.

examples/groups_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
@bot.router.message()
88
def message_handler(notification: Notification) -> None:
9-
if "@g.us" in notification.get_chat():
9+
if "-" in notification.get_chat():
1010
print("Incoming message", notification.get_id_message(), "in group chat", notification.get_chat(), "from", notification.get_sender())
1111
notification.answer("Hello, group!")
1212
# Add your implementation
13-
if "@c.us" in notification.get_chat():
13+
else:
1414
print("Incoming message", notification.get_id_message(), "in contact chat", notification.get_chat())
1515
notification.answer("Hello, contact!")
1616
# Add your implementation

max_chatbot_python/manager/handler.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,6 @@ def answer_with_file(
121121
chat, file, file_name, caption, quoted_message_id
122122
)
123123

124-
def answer_with_poll(
125-
self,
126-
message: str,
127-
options: List[Dict[str, str]],
128-
multiple_answers: Optional[bool] = None,
129-
quoted_message_id: Optional[str] = None
130-
) -> Optional[Response]:
131-
chat = self.get_chat()
132-
if chat:
133-
return self.api.sending.sendPoll(
134-
chat, message, options, multiple_answers, quoted_message_id
135-
)
136-
137-
138124
HandlerType = Callable[[Notification], Any]
139125

140126

0 commit comments

Comments
 (0)