Skip to content

BataBoom/Nutgram-Bulk-Messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Telegram Bulk Messenger for Nutgram Laravel.

Topics

Resources

Stars

Watchers

Forks