Refactoring TradingBotBase.cs + clean architecture (#38)
* Refactoring TradingBotBase.cs + clean architecture * Fix basic tests * Fix tests * Fix workers * Fix open positions * Fix closing position stucking the grain * Fix comments * Refactor candle handling to use IReadOnlyList for chronological order preservation across various components
This commit is contained in:
@@ -295,15 +295,15 @@ function UserInfoSettings() {
|
||||
<input
|
||||
type="text"
|
||||
className="input input-bordered w-full"
|
||||
{...registerTelegram('telegramChannel', {
|
||||
{...registerTelegram('telegramChannel', {
|
||||
required: 'Telegram channel is required',
|
||||
pattern: {
|
||||
value: /^[0-9]{5,15}$/,
|
||||
message: 'Enter numeric channel ID (5-15 digits)'
|
||||
value: /^(?:-?[0-9]{5,15}|@[a-zA-Z0-9_]{5,32}|https?:\/\/(?:t\.me|telegram\.me)\/[a-zA-Z0-9_]{5,32}|https?:\/\/web\.telegram\.org\/k\/#-?[0-9]{5,15})$/,
|
||||
message: 'Enter channel ID, @username, or Telegram URL (t.me, telegram.me, or web.telegram.org)'
|
||||
}
|
||||
})}
|
||||
defaultValue={user?.telegramChannel || ''}
|
||||
placeholder="2828543022"
|
||||
placeholder="-3368031621 or @channelname or https://t.me/channelname"
|
||||
/>
|
||||
{telegramErrors.telegramChannel && (
|
||||
<label className="label">
|
||||
|
||||
Reference in New Issue
Block a user