Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
Inventory tg bot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
globa
Inventory tg bot
Commits
803d82fd
Commit
803d82fd
authored
May 17, 2024
by
globa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cfg add
parent
a3f338cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
index.ps1
index.ps1
+9
-4
No files found.
index.ps1
View file @
803d82fd
$db
=
"D:\telegram-bot\db.sqlite"
$ids
=
(
'177113518'
,
'162513986'
)
#Invoke-SqliteQuery -DataBase $db -Query $query
# Token
$token
=
"320805042:AAFsnz44hhAmHvUy4i3fgT9oAA9xk0VbkHc"
# Подключение файла с конфигурацией
$configFile
=
".\config.cfg"
if
(
Test-Path
$configFile
)
{
.
$configFile
}
else
{
Write-Host
"Файл с конфигурацией не найден"
}
# Telegram URLs
$URL_get
=
"https://api.telegram.org/bot
$token
/getUpdates"
$URL_set
=
"https://api.telegram.org/bot
$token
/sendMessage"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment