File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ async def demo_account_management(self):
2525 response = await self .greenAPI .account .getSettingsAsync ()
2626 if response .code == 200 :
2727 settings = response .data
28- print (f"getSettingsAsync :" )
28+ print ("getSettings :" )
2929 print (f" - delaySendMessagesMilliseconds: { settings .get ('delaySendMessagesMilliseconds' , 'N/A' )} ms" )
3030 print (f" - incomingWebhook: { settings .get ('incomingWebhook' , 'N/A' )} " )
3131 print (f" - outgoingWebhook: { settings .get ('outgoingWebhook' , 'N/A' )} " )
@@ -122,7 +122,7 @@ async def demo_queues(self):
122122 queue = response .data
123123 print (f"MessagesQueue: { len (queue )} " )
124124
125- print (f "Waiting 5 seconds... (for all messages to send)" )
125+ print ("Waiting 5 seconds... (for all messages to send)" )
126126 await asyncio .sleep (5 )
127127
128128 response = await self .greenAPI .queues .clearMessagesQueueAsync ()
Original file line number Diff line number Diff line change 88)
99
1010async def main ():
11- stop_event = asyncio .Event ()
12-
1311 try :
1412 await greenAPI .webhooks .startReceivingNotificationsAsync (handler )
1513 except Exception as e :
Original file line number Diff line number Diff line change 11import asyncio
2- from whatsapp_api_client_python import API , response
2+ from whatsapp_api_client_python import API
33
44greenAPI = API .GreenAPI (
55 "1101000001" , "d75b3a66374942c5b3c019c698abc2067e151558acbd412345"
Original file line number Diff line number Diff line change 11requests >= 2.31.0
22aiofiles >= 24.1.0
3- aiogram >= 3.21.0
3+ aiogram >= 3.13.1
44aiohttp >= 3.9.0
You can’t perform that action at this time.
0 commit comments