Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 608 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 608 Bytes

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