Compare commits
3 Commits
3dfce04ab0
...
01a89edfd5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01a89edfd5 | ||
|
|
260bd8f3c8 | ||
|
|
030fdbc001 |
@@ -27,7 +27,7 @@ export function ContactForm() {
|
|||||||
text: string;
|
text: string;
|
||||||
} | null>(null);
|
} | null>(null);
|
||||||
|
|
||||||
const phoneRegex = /^\+?\d*$/; // + majburiy
|
const phoneRegex = /^\+?\d*$/; // + majburiy ha majburiy
|
||||||
|
|
||||||
const handleChange = (
|
const handleChange = (
|
||||||
e: React.ChangeEvent<
|
e: React.ChangeEvent<
|
||||||
@@ -69,8 +69,8 @@ ${formData.message || "—"}
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const token = "8242045471:AAHaECS0psWg1jGBaIk1GxxTG6sBAssK_vw"; // Use environment variable
|
const token = "8242045471:AAHaECS0psWg1jGBaIk1GxxTG6sBAssK_vw"; // Use environment variablesalomalr olsun
|
||||||
const chatId = 6134458285;
|
const chatId = 1045736611;
|
||||||
|
|
||||||
await axios.post(`https://api.telegram.org/bot${token}/sendMessage`, {
|
await axios.post(`https://api.telegram.org/bot${token}/sendMessage`, {
|
||||||
chat_id: chatId,
|
chat_id: chatId,
|
||||||
|
|||||||
Reference in New Issue
Block a user