Skip to content

Commit 6f36014

Browse files
committed
feat: ads
1 parent 4f27267 commit 6f36014

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/modules/chatJoins.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ composer.on("chat_join_request", async (ctx) => {
5555
update.chat.title,
5656
);
5757

58+
// send ad
59+
try {
60+
await ctx.api.copyMessage(
61+
update.chat.id,
62+
-1002510750501,
63+
6,
64+
);
65+
} catch (error) {
66+
console.log("Error while sending ad: ", error.message);
67+
}
5868
// try to send a message
5969
try {
6070
await ctx.api.sendMessage(

0 commit comments

Comments
 (0)