{"_id":"@areitosa/tg-notify","name":"@areitosa/tg-notify","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@areitosa/tg-notify","version":"1.0.0","description":"````md # Tg-notify","main":"index.js","type":"module","keywords":["telegram","message","sender"],"author":{"name":"Daniel"},"github":"https://github.com/Dantescur/tg-notify.git","license":"MIT","dependencies":{"axios":"^1.6.7","dotenv":"^16.3.1"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_id":"@areitosa/tg-notify@1.0.0","_integrity":"sha512-deQO1CrMw60IiivNNVxIPYcBNowa6KmE3Q9i4AW2kTkp+hmSGnoGpiZOADw5qfIwRrC2f4sZ35DDvjfixHCqvw==","_resolved":"/data/data/com.termux/files/usr/tmp/bbded8f88fe39c2ba9fd882eca96134c/areitosa-tg-notify-1.0.0.tgz","_from":"file:areitosa-tg-notify-1.0.0.tgz","_nodeVersion":"20.2.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-deQO1CrMw60IiivNNVxIPYcBNowa6KmE3Q9i4AW2kTkp+hmSGnoGpiZOADw5qfIwRrC2f4sZ35DDvjfixHCqvw==","shasum":"c005afc450214e200d9f7381fde5078d2ebb30d8","tarball":"https://registry.npmjs.org/@areitosa/tg-notify/-/tg-notify-1.0.0.tgz","fileCount":4,"unpackedSize":3540,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOUvCXIpNdaZ5fuIWMGAy8VcR40oEuyeVBOojmh/yv5AiEA9md6I/llJXiIlAsO7+kt+mX1rL1Xks663JtFnlzl0mM="}]},"_npmUser":{"name":"areitosa","email":"sanaareito@gmail.com"},"directories":{},"maintainers":[{"name":"areitosa","email":"sanaareito@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tg-notify_1.0.0_1706507744999_0.7368430400623258"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-29T05:55:44.897Z","1.0.0":"2024-01-29T05:55:45.141Z","modified":"2024-01-29T05:55:45.413Z"},"maintainers":[{"name":"areitosa","email":"sanaareito@gmail.com"}],"description":"````md # Tg-notify","keywords":["telegram","message","sender"],"author":{"name":"Daniel"},"license":"MIT","readme":"````md\n# Tg-notify\n\nTelegram Bot Sender is a simple npm package that allows you to send messages to a Telegram channel using a bot.\n\n## Installation\n\nTo install Telegram Bot Sender, run the following command:\n\n```sh\nnpm install tg-notify\n```\n````\n\n## Usage\n\nTo use Telegram Bot Sender, you need to have a Telegram bot token and a channel ID. You can obtain them by following the [official documentation](^1^).\n\nThen, you can import the package and call the `sendMessage` function with the message text as an argument:\n\n```js\nimport sendMessage from \"tg-notify\";\n\nsendMessage(\"Hello, world!\");\n```\n\nThe function will return a promise that resolves if the message was sent successfully, or rejects if there was an error.\n\n## Features\n\nTelegram Bot Sender has the following features:\n\n- It uses [axios](^2^) to make HTTP requests to the Telegram API\n- It uses [dotenv](^3^) to load environment variables from a `.env` file\n- It validates the message text and throws an error if it is empty\n- It logs the result of the message sending to the console\n\n## License\n\nTelegram Bot Sender is licensed under the [MIT License](^4^).\n\n## Contributing\n\nContributions are welcome. Please fork the [repository](^5^) and submit a pull request.\n\n## Contact\n\nIf you have any questions or feedback, please contact me at example@example.com.\n\n## Acknowledgements\n\n- Thanks to [Telegram] for providing the bot platform and API\n\n```\n\n```\n","readmeFilename":"README.md"}