Invoke-RestMethod"$($URL)?offset=$($($data.update_id)+1)" -Method Get | Out-Null
...
...
@@ -81,8 +84,11 @@ while($true)
if($return)
{
if($return.chat_id -in $ids){
$response= Invoke-SqliteQuery -DataBase $db -Query "SELECT * From inventory WHERE inventory_num LIKE @inventory_num" -SqlParameters @{"inventory_num"=$($return["text"].ToUpper())}
$response= Invoke-SqlQuery -Query "SELECT * From inventory.mtb WHERE inventory_num LIKE @inventory_num" -Parameters @{"inventory_num"=$($return["text"].ToUpper())}