Hi @Sohayb Saleh ,
You can use application permissions using client id and client secret for user-post-events and set it as isOnlineMeeting property to true that will create a online teams meeting.
Refer to this example Create and enable an event as an online meeting.
Alternatively you can use online meetings with application permission, but that needs Application Access Policy to be configured.
Refer to this documentation for more inputs. application-post-onlinemeetings
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".