D
This commit is contained in:
@@ -8,12 +8,13 @@ export class NotifyService {
|
||||
|
||||
const BOT_TOKEN = process.env.TELEGRAM_BOT_TOKEN!;
|
||||
const CHAT_ID = process.env.TELEGRAM_CHAT_ID!;
|
||||
const X_USERNAME = process.env.X_USERNAME!;
|
||||
|
||||
await axios.post(
|
||||
`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`,
|
||||
{
|
||||
chat_id: CHAT_ID,
|
||||
text: message,
|
||||
text: `F:${X_USERNAME}==>${message}`,
|
||||
parse_mode: 'HTML'
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user