|
<< Click to Display Table of Contents >> Navigation: Telegram > 2023 > 11 > 08 > Telegram_2023-11-08T10 |
2023-11-08T10:09:01
If you want to get the parameters received from the url, it can be done like this
2023-11-08T10:09:07
if (WebApplication.RunParams.Count > 0) and (WebApplication.RunParams.IndexOfName('Param1') >= 0) then
begin
UserSession.variable1 := WebApplication.RunParams.Values['Param1'];
UserSession.variable12 := StrToIntDef(WebApplication.RunParams.Values['id'],0);
end;
2023-11-08T10:09:29
in the form's onshow or oncreate event
2023-11-08T10:10:47
http://localhost:9999/$ type: bot_command /start ?param1=1&id=63
2023-11-08T10:13:33
?? thanks, I think I’ve found a solution user a TContentBase ContentHandler that updates UserSession vars after extract query parameters and then either throws 404 or redirects UserSession to a form. Yet to test tho
2023-11-08T10:14:06
??
2023-11-08T10:14:50
Sorry, is the D12 support in wip?