{"id":13341775,"url":"https://github.com/hafizmdyasir/Direct-To-Chat","last_synced_at":"2025-03-11T22:31:35.793Z","repository":{"id":37709705,"uuid":"395635517","full_name":"hafizmdyasir/Direct-To-Chat","owner":"hafizmdyasir","description":"A minimal Android Application written in Kotlin that allows sending WhatsApp messages to unsaved contacts directly. ","archived":false,"fork":false,"pushed_at":"2023-03-23T11:07:37.000Z","size":3194,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-24T10:07:29.200Z","etag":null,"topics":["android","android-application","java","kotlin","kotlin-android","whatsapp","whatsapp-api","whatsapp-chat"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/hafizmdyasir.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}},"created_at":"2021-08-13T11:51:37.000Z","updated_at":"2024-06-16T18:14:18.000Z","dependencies_parsed_at":"2024-10-24T02:54:36.547Z","dependency_job_id":"68bd05df-6154-4d9c-8163-59d5dd42f709","html_url":"https://github.com/hafizmdyasir/Direct-To-Chat","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafizmdyasir%2FDirect-To-Chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafizmdyasir%2FDirect-To-Chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafizmdyasir%2FDirect-To-Chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hafizmdyasir%2FDirect-To-Chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hafizmdyasir","download_url":"https://codeload.github.com/hafizmdyasir/Direct-To-Chat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243125203,"owners_count":20240263,"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":["android","android-application","java","kotlin","kotlin-android","whatsapp","whatsapp-api","whatsapp-chat"],"created_at":"2024-07-29T19:26:32.503Z","updated_at":"2025-03-11T22:31:35.786Z","avatar_url":"https://github.com/hafizmdyasir.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Direct to Chat\nDirect to Chat is a minimal Android application that helps you send WhatsApp messages to unsaved contacts without needing to save their number to the phone book first. The app leverages official WhatsApp API to open the chat window of a particular number directly.\n\nNote that I was unable to find a way to include direct calling or video calling support using any official means. Any help in that regard would be much appreciated.\n\n## Download from Play Store\nIf you want the official experience and do not want to use .apk files, you can download this app from the Google Play Store. [^1]\n[![Get it on Google Play](https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png)](https://play.google.com/store/apps/details?id=com.hamohdy.whatsappdirect\u0026pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1)\n\n\n## How it works\nUsing the ``android.intent.action.VIEW`` action and WhatsApp\\'s official [api.whatsapp.com](https://api.whatsapp.com) website, it is quite easy to open the chat window to a particular phone number, regardless of whether it is in the contact book or not. To ensure that the browser does not catch this intent, the ``setPackage(String packageName)`` method is used to explicitly specify the target package.\n\nThe data provided to the intent is of the form ```https://api.whatsapp.com/send?phone=CCxxxxxxxxxx\u0026text=yyyyyy``` where CC is the country code, xxxxxxxxx is the WhatsApp number, and yyyyy is an optional parameter to pre-fill the text box with some text after the chat window is opened.\n\n### Note\nThe country code is necessary while providing the phone number. To help in this regard, the app contains a list of 255 countries with their ISD and ISO codes, along with the icons in png format for almost all of the countries.\n\n## Importing into Gradle\nThis step is quite simple. Clone this repository and open the build.gradle file directly in Android Studio or the IDE of your choice.\nOnce you build the project, you can install it onto any Android device running Android 9.0 Pie or above.\n\n## Screenshot\n[![Screenshot1](https://github.com/hafizmdyasir/WhatsAppDirect/blob/master/screenshots/Screenshot_20220622-125521_WhatsApp%20Direct.jpg)\n\n## Attributions\nThis application makes uses of the following sources:\n- Flags of all countries obtained via [Flagpedia.net](https://flagpedia.net)\n- [Fluent UI System Icons](https://github.com/microsoft/fluentui-system-icons) by Microsoft\n- [Fast Scroller](https://github.com/L4Digital/FastScroll) by L4Digital\n\n[^1]: Google Play and the Google Play logo are trademarks of Google LLC.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhafizmdyasir%2FDirect-To-Chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhafizmdyasir%2FDirect-To-Chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhafizmdyasir%2FDirect-To-Chat/lists"}