franciscod / telegram-twitter-forwarder-bot

A Telegram bot that forwards Tweets
GNU Lesser General Public License v3.0
316 stars 117 forks source link

I want the bot to show the tweet only #51

Open jurazdaja opened 3 years ago

jurazdaja commented 3 years ago

Hi,

I want the tweet in telegram to display the tweet without the first line (user and timezone) and the last line (link to tweet).

I don't know python, was looking at the files and I think it's here

https://github.com/franciscod/telegram-twitter-forwarder-bot/blob/master/bot.py

At line 48, am I right? What would I need to delete to make it work, and if I got the file how would I go about changing it, adding a new bot on telegram or how? Thanks

Adem1987 commented 3 years ago

Yes, just delete *{name}* and {created_at}.

You have to download everything through github, than change it and than run it on your pc or server.

jurazdaja commented 3 years ago

Thanks Adem I'm going to try it out and post here a pastebin of my frankenstein .py file so please don't close the thread just yet

jurazdaja commented 3 years ago

Hey so will this work?

https://pastebin.com/J1k6jh44

I got a PC/windows, I've only made bots inside telegram nothing in 'virtual environments' can someone host this bot please?

Or maybe update yours with this script its better :p

Adem1987 commented 3 years ago

Here, I made it pretty for you: https://pastebin.com/wiGvXQ7V

Am 05.02.2021 um 17:53 schrieb jurazdaja notifications@github.com:

Hey so will this work?

https://pastebin.com/J1k6jh44 https://pastebin.com/J1k6jh44 I got a PC/windows, I've only made bots inside telegram nothing in 'virtual environments' can someone host this bot please?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/franciscod/telegram-twitter-forwarder-bot/issues/51#issuecomment-774153561, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOWFQ76WPVDSY4IOEX5MXDS5QPBDANCNFSM4W7W55ZA.

jurazdaja commented 3 years ago

hey great thanks man, I at least wanted to be sure the code works before getting into hosting it and all that! cool, i'll post the bot here when I upload it