To send messages you need the id of the chat you are going to spam, and the token of the account sending the messages.
The only package that you nedd to install is the requests package.
You can find plenty of videos on how to get your accounts token on youtube.
Find your Account Token : https://www.youtube.com/watch?v=YEgFvgg7ZPI
Obtaining Chat id's, User id`s: https://www.youtube.com/watch?v=NLWtSHWKbAI
Have a nice day.
--ducksteam--