{"id":13826544,"url":"https://github.com/New-dev0/Telethon-Patch","last_synced_at":"2025-07-09T00:33:54.969Z","repository":{"id":57210126,"uuid":"479473673","full_name":"New-dev0/Telethon-Patch","owner":"New-dev0","description":"Wrap over telethon with additional upgrades","archived":false,"fork":false,"pushed_at":"2024-06-13T08:42:45.000Z","size":47,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T23:47:02.234Z","etag":null,"topics":["hacktoberfest","mtproto","python3","telegram","telethon","telethon-patch"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/New-dev0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-08T17:02:08.000Z","updated_at":"2025-06-02T05:34:14.000Z","dependencies_parsed_at":"2024-01-15T16:32:04.954Z","dependency_job_id":"619a4f8b-e14d-447f-8ab1-72d3cfbb463c","html_url":"https://github.com/New-dev0/Telethon-Patch","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.4666666666666667,"last_synced_commit":"8f89acf09640bfbef5a73ab4e32240eedb4bb3b2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/New-dev0/Telethon-Patch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2FTelethon-Patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2FTelethon-Patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2FTelethon-Patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2FTelethon-Patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/New-dev0","download_url":"https://codeload.github.com/New-dev0/Telethon-Patch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2FTelethon-Patch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264370855,"owners_count":23597659,"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":["hacktoberfest","mtproto","python3","telegram","telethon","telethon-patch"],"created_at":"2024-08-04T09:01:40.036Z","updated_at":"2025-07-09T00:33:54.687Z","avatar_url":"https://github.com/New-dev0.png","language":"Python","readme":"# Telethon-Patch\n- A Wrap over Telethon (Telegram MtProto Library) with additional features.\n\n## Installation\n```bash\npip install telethon-patch\n```\n\n### Usage\n- To make telethon-patch to do it's work, import TelegramClient\n```python\nfrom telethonpatch import TelegramClient\n\nclient = TelegramClient(\n    ...\n)\n```\n\n## Features\n#### Use any Function without Import\n```python\nawait client.SendReactionRequest(\"chat\", msg.id, reaction=\"👍\")\n# or (Without 'Request' prefix)\nawait client.SendReaction(chat, msg.id, reaction=\"👍\")\n```\n\n### Send Button linked to User's profile\n```python\nfrom telethon.tl.types import Button\n\nuser = await client.get_input_entity(\"me\")\nbutton = Button.mention(\"Open Profile\", user)\n\nawait client.send_message(\"username\", \"Hey!, Message with mention Button\", buttons=button)\n```\n\n### Chat Join Requests ([In Detail](#eventsjoinrequest))\n```python\nfrom telethon import events\n\n@client.on(events.JoinRequest())\nasync def example(event):\n    ## Approve - User\n    await event.approve()\n    ## Disapprove user\n    await event.reject()\n    # or print Info of the user.\n    print(await event.get_user())\n```\n\n### Group Call Event ([In Detail](#eventsgroupcall))\n```python\n@client.on(events.GroupCall())\nasync def groupcall(group_call):\n    if group_call.started:\n        print(\"Group Call Started!\")\n        return\n    if group_call.ended:\n        print(\"Group Call Ended!\")\n```\n\n### Message Extensions\n- `message.message_link` - `Message link of message.`\n- `message.comment()` - Bound method to comment on channel or thread message.\n- `message.react()` - Bound method to react on messages.\n\n\n### Friendly Methods like\n\u003e Group call\n- client.start_group_call\n- client.join_group_call\n-  client.leave_group_call\n- client.discard_group_call\n- client.get_group_call\n\u003e Reaction\n- client.send_reaction\n \u003e (Topics)\n- client.create_topic\n- client.edit_topic\n- client.get_topics\n- client.join_chat\n\u003e (misc)\n- client.toggle_hidden\n- client.read (instead of send_read_acknowledge)\n\u003e (Photos)\n- client.set_profile_photo\n- client.set_contact_photo\n\n# Events\n\n## `events.GroupCall`\n- Occurs when certain action related to group call happens.\n-  `started` - Group call started.\n-  `ended` - Group call ended.\n-  `scheduled` - Whether a Group call has been scheduled.\n\n#### Methods\n- `.start(title, rtmp_stream, schedule)` - Start a group call\n- `.discard()` - End group call.\n- `.toggle_record(start, video, video_portrait, title)` - Toggle group call record.\n\n## `events.JoinRequest`\n- Occurs when new chat join request is sent.\n- `.invite` - ExportedChatInvite related to join request\n- `.about` - User's about.\n\n#### Methods\n- `.approve()` - Approve chat join request of user.\n- `.reject()` - Reject chat join request.\n- `.get_user()` - Get user sending request.\n\n### Example of full functioning bot can be find in [examples](/examples)","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNew-dev0%2FTelethon-Patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNew-dev0%2FTelethon-Patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNew-dev0%2FTelethon-Patch/lists"}