@@ -71,13 +74,14 @@ function Get-YearEnding([int]$num) {
...
@@ -71,13 +74,14 @@ function Get-YearEnding([int]$num) {
return"лет"
return"лет"
}
}
}
}
while($true)# вечный цикл
while($true)
{
{
$return= getUpdates $URL_get
$return= getUpdates $URL_get
if($return)
if($return)
{
{
if($return.chat_id -in $ids){
if($return.chat_id -in $ids){
$response= Invoke-SqliteQuery -DataBase $db -Query "SELECT * From inventory WHERE inventory_num LIKE '$($return["text"].ToUpper())'"
$response= Invoke-SqliteQuery -DataBase $db -Query "SELECT * From inventory WHERE inventory_num LIKE @inventory_num" -SqlParameters @{"inventory_num"=$($return["text"].ToUpper())}