Welcome email message after add listing

Or instead of sending a private message via the hivepress messages plugin, I could solve it directly by sending an email after adding an listing. I found this code of @andrii Email notification for paid listing confirmation and listing submission - General - HivePress Community which works, but I would like the title of the listing to be displayed instead of Custom subject and the ID of the listing to be displayed instead of Custom text, for example: Hello, Your listing was published with ID: 123

I found the following tokens somewhere, but I don’t know how to use them in the code:

'tokens'    => [
								'user'          => $user,
								'listing'       => $listing,
								'user_name'     => $user->get_display_name(),
								'listing_title' => $listing->get_title(),
								'listing_url'   => get_permalink( $listing->get_id() ),
							],```