Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want the bot to show the tweet only #51

Open
jurazdaja opened this issue Feb 2, 2021 · 5 comments
Open

I want the bot to show the tweet only #51

jurazdaja opened this issue Feb 2, 2021 · 5 comments

Comments

@jurazdaja
Copy link

jurazdaja commented Feb 2, 2021

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
Copy link

Adem1987 commented Feb 2, 2021

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
Copy link
Author

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
Copy link
Author

jurazdaja commented Feb 5, 2021

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
Copy link

Adem1987 commented Feb 5, 2021 via email

@jurazdaja
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants