Skip to content

Commit ca0df4e

Browse files
committed
fix: linter tests
1 parent a29bbdf commit ca0df4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/async/payload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def demo_sending_messages(self):
9797
if response.code == 200:
9898
print("Contact message sent: ", response.data)
9999

100-
response = await greenAPI.sending.sendLocationAsync(
100+
response = await self.greenAPI.sending.sendLocationAsync(
101101
"79001234567@c.us",
102102
44.9370129,
103103
89.8728409,

examples/async/sending/uploadFileAndSendFileByUrlAsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def main():
2020

2121
url_file = upload_file_response.data["urlFile"]
2222
url = urlparse(url_file)
23-
file_name = basename(url.path)
23+
file_name = os.path.basename(url.path)
2424

2525
send_file_response = await greenAPI.sending.sendFileByUrlAsync(
2626
"11001234567@c.us", url_file, file_name

0 commit comments

Comments
 (0)