Telegram Bulk Messenger for Nutgram Laravel.
Requires:
$recipients = TelegramChat::All()->pluck('chat_id');
Create a Message:
$createMsg = TelegramSpamMsg::Create([
'title' => 'Your Newsletter',
'message' => 'some message',
'recipients' => json_encode($recipients->toArray()),
]);
Should add this bit to the Command, though for now, Add Recipients to Queue:
foreach($recipients as $recipient)
{
TelegramSpam::Create([
'chat_id' => $recipient,
'msg_id' => $createMsg->id,
]);
}
php artisan spam:telegram 1