This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
procedure TForm1.Button1Click(Sender: TObject); | |
var | |
http: TIdHTTP; | |
begin | |
FstTest := TTask.Future<String>(function():String begin | |
Sleep(3000); | |
http := TIdHTTP.Create(); | |
try | |
Result := http.Get('http://www.mojeld.com/'); | |
finally |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# before run this script install required packages via command below | |
# pip3 install -U pytgcalls==3.0.0.dev24 | |
import asyncio | |
import pytgcalls | |
import telethon | |
# EDIT THIS | |
# more info about API keys here https://docs.telethon.dev/en/latest/basic/signing-in.html |