Skip to content

Commit f04e2b6

Browse files
author
jarriztg
committed
Create sendPhoto.php
1 parent 4b93e43 commit f04e2b6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

sendPhoto.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
$botToken = "189074074:AAH2PmSI_TOfmfFzWa7uzkUlcc0QU5W5X84";
4+
$website = "https://api.telegram.org/bot".$botToken;
5+
6+
?>
7+
8+
<form action="<?php echo $website.'/sendPhoto' ?>" methos="post" enctype"multipart/form-data">
9+
10+
<input type="text" name="chat_id" value="189041244" />
11+
<input type="file" name="photo" />
12+
<input type="submit" value="send" />
13+
14+
</form>

0 commit comments

Comments
 (0)