Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bataboom/nutgram-bulk-messenger
- Owner: BataBoom
- Created: 2024-08-14T07:23:37.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T07:38:12.000Z (5 months ago)
- Last Synced: 2024-12-05T04:42:41.127Z (about 2 months ago)
- Topics: bulk-message-sender, nutgram, telegram
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```