Skip to content

Instantly share code, notes, and snippets.

@MarshalX
MarshalX / 1_pytgcalls_video_telethon_example.py
Last active May 8, 2024 09:10
Example of the most simple way to stream any video to Telegram Live Stream (Group Call) with https://github.com/MarshalX/tgcalls
# 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
@abdiiwan
abdiiwan / async_await.pas
Created December 2, 2016 19:35
In Delphi to "async/await". Use "TTask"
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