Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #11

Merged
merged 4 commits into from
Oct 9, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update to set the chat id for app service
  • Loading branch information
tanhongit committed Oct 9, 2023
commit 4b83c8d0dae4aa200a4a3970978d68b940522ce0
4 changes: 2 additions & 2 deletions src/Services/AppService.php
Original file line number Diff line number Diff line change
@@ -19,9 +19,9 @@ public function __construct(Telegram $telegram = null)
$this->telegram = $telegram ?? new Telegram(config('telegram-git-notifier.bot.token'));
}

public function setCurrentChatId(string $chatId): void
public function setCurrentChatId(string $chatId = null): void
{
$this->chatId = $chatId;
$this->chatId = $chatId ?? config('telegram-git-notifier.bot.chat_id');
}

private function createBaseContent(): array