{"id":13529361,"url":"https://github.com/mkellerman/PSTelegramAPI","last_synced_at":"2025-04-01T15:30:52.673Z","repository":{"id":138258342,"uuid":"164014056","full_name":"mkellerman/PSTelegramAPI","owner":"mkellerman","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-05T15:00:11.000Z","size":915,"stargazers_count":33,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-02T15:36:36.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkellerman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-01-03T19:25:29.000Z","updated_at":"2024-09-13T18:44:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"b999ced4-d08b-42a8-848e-f62490979a48","html_url":"https://github.com/mkellerman/PSTelegramAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkellerman%2FPSTelegramAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkellerman%2FPSTelegramAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkellerman%2FPSTelegramAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkellerman%2FPSTelegramAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkellerman","download_url":"https://codeload.github.com/mkellerman/PSTelegramAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246662272,"owners_count":20813721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:00:35.665Z","updated_at":"2025-04-01T15:30:52.064Z","avatar_url":"https://github.com/mkellerman.png","language":"PowerShell","funding_links":[],"categories":["API Wrapper","PowerShell"],"sub_categories":[],"readme":"[![PSGallery Version](https://img.shields.io/powershellgallery/v/PSTelegramAPI.svg?style=for-the-badge\u0026label=PowerShell%20Gallery)](https://www.powershellgallery.com/packages/PSTelegramAPI/)\n[![PSGallery Downloads](https://img.shields.io/powershellgallery/dt/PSTelegramAPI.svg?style=for-the-badge\u0026label=Downloads)](https://www.powershellgallery.com/packages/PSTelegramAPI/)\n\n[![Azure Pipeline](https://img.shields.io/azure-devops/build/mkellerman/PSTelegramAPI/3.svg?style=for-the-badge\u0026label=Azure%20Pipeline)](https://dev.azure.com/mkellerman/PSTelegramAPI/_build?definitionId=3)\n[![Analytics](https://ga-beacon.appspot.com/UA-133882862-1/PSTelegramAPI?pixel)](https://github.com/mkellerman)\n\n# PSTelegramAPI\n\nPowerShell Module for Telegram APIs\n\n# Install PSTelegramAPI from PSGallery\n```powershell\nInstall-Module PSTelegramAPI -Scope CurrentUser\n```\n\n# Examples\n\n```powershell\nImport-Module PSTelegramAPI\n\n# Establish connection to Telegram\n$TLClient = New-TLClient -apiId $ENV:TLApiId -apiHash $ENV:TLApiHash -phoneNumber $ENV:TLPhoneNumber\n\n# Get List of User Dialogs\n$TLUserDialogs = Get-TLUserDialogs -TLClient $TLClient\n\n# Get latest 100 messages from each User in List\nForEach ($User in $TLUserDialog) {\n    $TLHistory = Get-TLHistory -TLClient $TLClient -Peer $User.Peer -Limit 100\n}\n\n# Find a specific User\n$TLPeer = $TLUserDialogs.Where({ $_.Peer.Username -eq 'mkellerman' }).Peer\n\n# Send message to User\nInvoke-TLSendMessage -TLClient $TLClient -TLPeer $TLPeer -Message 'Hello World'\n```\n\n# Completed\n\n* Get-TLUserDialogs\n* Get-TLContacts\n* Get-TLHistory\n* Invoke-TLSendMessage\n\n# References\n\n* [PSTelegramAPI](https://www.powershellgallery.com/packages/PSTelegramAPI/) : PowerShell Gallery\n* [TLSharp](https://github.com/sochix/TLSharp) : Telegram client library implemented in C#\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkellerman%2FPSTelegramAPI","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkellerman%2FPSTelegramAPI","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkellerman%2FPSTelegramAPI/lists"}