Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Get your own telegram bot to fill google form for you

Hello guys sup!!!!!
I have made a simple telegram bot which can fill google forms for me.
I am using it to fill google form for attendance of my online classes 😁.

You can make your own telegram Bot to fill google forms for you.
Just follow the description properly in github page.

source code  => github.com/Ujjal-Baniya/TelegramBot-myHomie

[note : I couldn`t post link properly because I am new to this forum and I haven`t done 50 posts yet]

Feedback will be appreciated.
[ Hope to get good programming mates ]
Looks cool. Might want to rename the license file to LICENSE instead of LICIENCE (or update the link in the readme)

The code looks fine, you could probably improve the elif in the get_details function by making a dict that uses the field name x as a key and the response as a value (something like this):
Code
fields = {
  "NAME": "your name here",
  "EMAIL": "your email here"
}

Also error handling or proper message formatting (so like sending errors back via Telegram etc.)

Another small code style thing I noticed in the get_details function: You continue the for-loop if y equals None so you don't need the else, you can just leave that out

For the make_reply function: I'd suggest to move the variable for the Telegram user-ID to the top of the file so you can make all changes in one place.

Also you might want to compare and return if it doesn't match so you don't have to have the rest of your code in an else block.

Good job!
Interesting tool, thanks for sharing!

Hey there,
If I have helped you or if you just enjoy my posts, please consider donating bitcoin to me 1DpL2kcxuidEsjt2MMN2AYufcVoXbi3v2X

[Image: FtwuQgr.gif]
Nice share, will use this in future for sure
(Sep 4, 2020 03:03 AM)4Txe4y33C9zvNhMj Wrote:  Looks cool. Might want to rename the license file to LICENSE instead of LICIENCE (or update the link in the readme)

The code looks fine, you could probably improve the elif in the get_details function by making a dict that uses the field name x as a key and the response as a value (something like this):
Code
fields = {
  "NAME": "your name here",
  "EMAIL": "your email here"
}

Alsoerror handling or proper message formatting (so like sending errors back via Telegram etc.)

Another small code style thing I noticed in the get_details function: You continue the for-loop if y equals None so you don't need the else, you can just leave that out

For the make_reply function: I'd suggest to move the variable for the Telegram user-ID to the top of the file so you can make all changes in one place.

Also you might want to compare and return if it doesn't match so you don't have to have the rest of your code in an else block.

Good job!

Thanks mate Hope to get connected ✌✌✌


(Sep 4, 2020 02:33 PM)tux1 Wrote:  Interesting tool, thanks for sharing!

Thanks✌


(Sep 4, 2020 02:37 PM)Wayne Wrote:  Nice share, will use this in future for sure

Thank you bro ✌


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by blackcoder00Jan 30, 2021 10:24 PM 9 258 Jan 30, 2021 10:24 PM
Last Post: saltycracker
[Shell] by bat9hackMar 2, 2019 12:39 PM 1 248 Mar 2, 2019 12:39 PM
Last Post: hamid1615
[.NET] by Moon RockAug 19, 2017 12:30 PM 15 619 Aug 19, 2017 12:30 PM
Last Post: SNAKEGOTCHA