Skip to content

Commit

Permalink
fix: replace mongo object id for telegram chatId (bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwietter committed Sep 9, 2023
1 parent 1a8a27a commit 0f34862
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Para desabilitar a instância de deploy

```bash
flyctl scale count 0
```

Para fazer o deploy

```bash
fly deploy
```
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@ const sendApodForAllGroups = async () => {

for (const chat of chatlists) {
await bot.telegram.sendMessage(
chat.id,
chat.chatId,
`${title}${date} \n\n${explanation}`,
{
parse_mode: "HTML",
}
);

await bot.telegram.sendPhoto(chat.id, url, {
await bot.telegram.sendPhoto(chat.chatId, url, {
caption: hdImage,
parse_mode: "HTML",
});
Expand Down

0 comments on commit 0f34862

Please sign in to comment.