Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bataboom/nutgram-bulk-messenger

Telegram Bulk Messenger for Nutgram Laravel.
https://github.com/bataboom/nutgram-bulk-messenger

bulk-message-sender nutgram telegram

Last synced: about 1 month ago
JSON representation

Telegram Bulk Messenger for Nutgram Laravel.

Awesome Lists containing this project

README

        

Telegram Bulk Messenger for Nutgram Laravel.

Requires:
- https://github.com/nutgram/nutgram
- https://github.com/laravel/laravel

```
$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

```