Compare commits
No commits in common. "b54bf65bcae40ea81ea1dee825919e5d7e07f844" and "4d70717fb090fbab3c1460ae31ad7db1d7cf415d" have entirely different histories.
b54bf65bca
...
4d70717fb0
4 changed files with 5 additions and 13 deletions
|
|
@ -396,7 +396,7 @@ export default function OrderDetails() {
|
|||
</View>
|
||||
<View style={tw`flex-1`}>
|
||||
<MyText style={tw`text-sm text-gray-600 leading-5`}>
|
||||
{order.address.name} {' '}
|
||||
{order.address.name}
|
||||
{order.address.line1}
|
||||
{order.address.line2 ? `, ${order.address.line2}` : ""}
|
||||
{`\n${order.address.city}, ${order.address.state} - ${order.address.pincode}`}
|
||||
|
|
|
|||
|
|
@ -28,8 +28,4 @@ RAZORPAY_SECRET=namEwKBE1ypWxH0QDVg6fWOe
|
|||
OTP_SENDER_AUTH_TOKEN=eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJDLTM5OENEMkJDRTM0MjQ4OCIsImlhdCI6MTc0Nzg0MTEwMywiZXhwIjoxOTA1NTIxMTAzfQ.IV64ofVKjcwveIanxu_P2XlACtPeA9sJQ74uM53osDeyUXsFv0rwkCl6NNBIX93s_wnh4MKITLbcF_ClwmFQ0A
|
||||
|
||||
MIN_ORDER_VALUE=300
|
||||
DELIVERY_CHARGE=20
|
||||
|
||||
# Telegram Configuration
|
||||
TELEGRAM_BOT_TOKEN=8410461852:AAGXQCwRPFbndqwTgLJh8kYxST4Z0vgh72U
|
||||
TELEGRAM_CHAT_IDS=-5075171894
|
||||
DELIVERY_CHARGE=20
|
||||
|
|
@ -41,7 +41,3 @@ export const otpSenderAuthToken = process.env.OTP_SENDER_AUTH_TOKEN as string;
|
|||
export const minOrderValue = Number(process.env.MIN_ORDER_VALUE as string);
|
||||
|
||||
export const deliveryCharge = Number(process.env.DELIVERY_CHARGE as string);
|
||||
|
||||
export const telegramBotToken = process.env.TELEGRAM_BOT_TOKEN as string;
|
||||
|
||||
export const telegramChatIds = (process.env.TELEGRAM_CHAT_IDS as string)?.split(',').map(id => id.trim()) || [];
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import axios from 'axios';
|
||||
import { telegramBotToken, telegramChatIds } from './env-exporter';
|
||||
|
||||
const BOT_TOKEN = telegramBotToken;
|
||||
const CHAT_IDS = telegramChatIds;
|
||||
const BOT_TOKEN = '8410461852:AAGXQCwRPFbndqwTgLJh8kYxST4Z0vgh72U';
|
||||
// const CHAT_IDS = ['5147700658', '-5075171894'];
|
||||
const CHAT_IDS = [ '-5075171894'];
|
||||
const TELEGRAM_API_URL = `https://api.telegram.org/bot${BOT_TOKEN}`;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue