{"id":18323518,"url":"https://github.com/bay007/pyssengerfb","last_synced_at":"2026-01-20T21:02:37.254Z","repository":{"id":82747957,"uuid":"99540062","full_name":"bay007/pyssengerfb","owner":"bay007","description":"Una opción para manejar la API de Facebook Messenger.","archived":false,"fork":false,"pushed_at":"2024-06-18T21:03:27.000Z","size":11,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T03:18:50.935Z","etag":null,"topics":["api","button-template","facebook","generic-template","image-attachment","messenger","quick-replies","sender-actions","text-message"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bay007.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,"publiccode":null,"codemeta":null}},"created_at":"2017-08-07T05:32:53.000Z","updated_at":"2019-01-14T01:58:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6829f7e-e6ff-4207-a41b-6305894b9eaf","html_url":"https://github.com/bay007/pyssengerfb","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/bay007%2Fpyssengerfb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bay007%2Fpyssengerfb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bay007%2Fpyssengerfb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bay007%2Fpyssengerfb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bay007","download_url":"https://codeload.github.com/bay007/pyssengerfb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406114,"owners_count":20933806,"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":["api","button-template","facebook","generic-template","image-attachment","messenger","quick-replies","sender-actions","text-message"],"created_at":"2024-11-05T18:28:34.619Z","updated_at":"2026-01-20T21:02:37.243Z","avatar_url":"https://github.com/bay007.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/bay007/pyssengerfb.svg?branch=master)](https://travis-ci.org/bay007/pyssengerfb)\n# pyssengerfb\npyssengerfb es una opción para manejar la API de Facebook Messenger en Python.\n - Envío de mensajes de [texto].\n - Envío de [imagenes].\n - Envío de estados [escribiendo].\n - Envío de botones de [rápida respuesta].\n - Envío de botones [agrupados].\n - Envío de [cuadros] con imágenes informativas.\n\n## Uso\n```python\nimport pyssengerfb as pfb\nimport os\nimport time\n\nACCESS_TOKEN = os.getenv(\"ACCESS_TOKEN\", \"-\")\nCLIENT_ID = os.getenv(\"CLIENT_ID\", \"-\")\n\n# Declaramos el Elemento base\npage = pfb.Page(ACCESS_TOKEN)\n\n# Uso de mensaje basico\nmessage = pfb.Message.text(\"Hola Mundo\")\npage.send(sender_id=CLIENT_ID, mensaje=message)\n\n# Envio de imagen\nimage_URL = \"https://lh3.googleusercontent.com/Yh6ZlCb8dQIDIwAWbwd2jboFCyTqq8wc2xbLMs9ykYemOX3vjOTtT6Npfbk-jFkCciwY=w300\"\nmessage_imagen = pfb.Message.image(image_URL)\npage.send(sender_id=CLIENT_ID, mensaje=message_imagen)\n\n# Button Template\nbutton_1 = pfb.Message.button_postback(\n    title=\"El texto que se muestra en el boton\")\nbutton_2 = pfb.Message.button_web(\n    title=\"Buscador...\", url=\"https://www.google.com\")\nbutton_template = pfb.Template.button_template(\n    title=\"Este es un grupo de botones\", buttons=[button_1, button_2])\npage.send(sender_id=CLIENT_ID, mensaje=button_template)\n\n# Button Generic Template\navion_imagen = \"https://ep00.epimg.net/elpais/imagenes/2015/12/28/paco_nadal/1451287800_145128_1451287800_noticia_normal.jpg\"\nbutton_3 = pfb.Message.button_postback(title=\"Elemento 3\")\ngeneric_template_element_a = pfb.Message.generic_template_element(\n    title=\"Elemento1\", subtitle=\"Subtitulo\", image_url=image_URL, url=\"https://www.google.com\", buttons=[button_1, button_2])\ngeneric_template_element_b = pfb.Message.generic_template_element(\n    title=\"A volar\", subtitle=\"Vuelo comercial\", image_url=avion_imagen, buttons=[button_3, button_2])\n\ngeneric_template = pfb.Template.generic_template(\n    [generic_template_element_a, generic_template_element_b])\npage.send(sender_id=CLIENT_ID, mensaje=generic_template)\n\n# Quick reply\nquick_reply = pfb.Message.quick_reply(\n    \"¿Desea mas informacion?\", [\"Si\", \"No\", \"Mas tarde\"])\npage.send(sender_id=CLIENT_ID, mensaje=quick_reply)\n\n# Sender actions\nsender_Action = pfb.Message.sender_action(True)\npage.send(sender_id=CLIENT_ID, mensaje=sender_Action)\ntime.sleep(4)\nsender_Action = pfb.Message.sender_action()\npage.send(sender_id=CLIENT_ID, mensaje=sender_Action)\n\n```\n\n[rápida respuesta]:https://developers.facebook.com/docs/messenger-platform/send-api-reference/quick-replies\n[imagenes]:https://developers.facebook.com/docs/messenger-platform/send-api-reference/image-attachment\n[texto]:https://developers.facebook.com/docs/messenger-platform/send-api-reference/text-message\n[escribiendo]:https://developers.facebook.com/docs/messenger-platform/send-api-reference/sender-actions\n[agrupados]:https://developers.facebook.com/docs/messenger-platform/send-api-reference/button-template\n[cuadros]:https://developers.facebook.com/docs/messenger-platform/send-api-reference/generic-template\n\nVersion\n----\n\n0.1.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbay007%2Fpyssengerfb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbay007%2Fpyssengerfb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbay007%2Fpyssengerfb/lists"}